app中没有显示错误。以下是我的config / app.php设置
'env'=> env('APP_ENV','开发'),
'debug'=> env('APP_DEBUG',true),
我尝试清除config cache clear和optimize命令 .env文件
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:Pq/tS8K9qPwxyqPUz+efLhxhteuH1sgUuA/rPcG0msc=
APP_DEBUG=false
APP_LOG_LEVEL=true
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=lar_potal
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=null
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
答案 0 :(得分:0)
您需要将APP_DEBUG=true
和APP_LOG_LEVEL=debug
放在laravel根目录下的 .env 文件中。
您应该拥有的 .env 文件:
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:Pq/tS8K9qPwxyqPUz+efLhxhteuH1sgUuA/rPcG0msc=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=lar_potal
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=null
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=