哎呀,好像出了点问题,laravel

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51209477/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 17:52:55  来源:igfitidea点击:

Whoops, looks like something went wrong, laravel

phplaravel

提问by moussa elenany

I get free host from 000webhost.com and it was working fine, but after two weeks i get the error "Whoops, looks like something went wrong". I use laravel framework for php.
Can anyone help me?

我从 000webhost.com 获得了免费主机,它运行良好,但两周后我收到错误消息“哎呀,好像出了点问题”。我为 php 使用 laravel 框架。
谁能帮我?

回答by Aakash Tushar

First of all, in config/app.phpset debug to trueor in your .env file set APP_DEBUG=true. This should turn on the debugging errors Onon your server. If errors are still not visible, try php artisan config:clearfor making changes to take effect. You may also check storage/logs/laravel.logfor errors.

首先,在config/app.phpset debugtrue或您的 .env 文件 set 中APP_DEBUG=true。这应该打开调试错误,你的服务器上。如果错误仍然不可见,请尝试php artisan config:clear使更改生效。您也可以检查storage/logs/laravel.log错误。

Possible problems are:

可能的问题是:

  • Your server's configurations does not meet the Laravel's requirements.
  • Laravel does not have read/write access to bootstrap/cachefolder.
  • Project dependencies not installed or not supported.
  • 您的服务器配置不符合Laravel 的要求
  • Laravel 没有bootstrap/cache文件夹的读/写权限。
  • 未安装或不支持项目依赖项。

回答by moussa elenany

I get the solution :

我得到了解决方案:

  • First i go to app.php and change the value of APP_DEBUG = true
  • I get the error name " No application key generated "
  • I run code php artisan key:generate
  • 首先我去 app.php 并更改 APP_DEBUG = true 的值
  • 我收到错误名称“未生成应用程序密钥”
  • 我运行代码 php artisan key:generate