當我試圖像運行命令 -爲什麼我laravel應用程序總是在生產心情
php artisan db:seed
跟它 -
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
我.ENV文件說 -
....
APP_ENV=local
APP_KEY=...
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
....
我的app.php文件說
...
'env' => env('APP_ENV', 'local'),
...
我的laravel版本是5.3。
我應該怎樣做才能在開發模式下運行應用程序?
在命令行中的有哪些呢'回聲$ APP_ENV'(或Windows上的'echo%APP_ENV%')顯示? – patricus
使用windows。回聲%APP_ENV%返回%APP_ENV%。當我運行「php artisan env」時,它返回「當前應用程序環境:生產」 –