请不要认为这是一种重复。
我已经查看了有关此错误的所有其他帖子,但没有一个有效。我正在使用Heroku进行推动,不久之前它运行得非常好。 我已完成密钥:使用256生成,使用密码' => ' AES-256-CBC&#39 ;. 它在localhost中运行正常,但在我推送之后没有在Heroku中运行。 我尝试过那里的每一个解决方案,我不得不遗漏一些东西,这令人沮丧。我不明白的是,即使我正在生成密钥,但仍然...... 请帮我找到解决此错误的方法。 此外,这是我得到的错误输出:
in EncryptionServiceProvider.php line 29
at EncryptionServiceProvider->Illuminate\Encryption\{closure}(object(Application), array()) in Container.php line 734
at Container->build(object(Closure), array()) in Container.php line 627
at Container->make('encrypter', array()) in Application.php line 674
at Application->make('encrypter') in Container.php line 838
at Container->resolveClass(object(ReflectionParameter)) in Container.php line 801
at Container->getDependencies(array(object(ReflectionParameter)), array()) in Container.php line 770
at Container->build('Illuminate\Cookie\Middleware\EncryptCookies', array()) in Container.php line 627
at Container->make('Illuminate\Cookie\Middleware\EncryptCookies', array()) in Application.php line 674
at Application->make('Illuminate\Cookie\Middleware\EncryptCookies') in Pipeline.php line 123
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 53
Thanks
答案 0 :(得分:3)
您可以尝试运行
php artisan key:generate
在客户端中,并使用生成的密钥替换.env文件中的APP_KEY。
答案 1 :(得分:0)
只需使用命令 php artisan key:generate
然后将其替换为您的laravel项目.env文件中的APP_KEY。
对我有用。