Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why I can't change production mode for my laravel project?

I run this command and I found out that I work in production mode:

php artisan env

and after I add to my .env this line:

APP_ENV=development

after I run all this commands

php artisan cache:clear
php artisan view:clear
php artisan config:cache

and always I get production mode

like image 556
Ahmed Guesmi Avatar asked Dec 29 '25 09:12

Ahmed Guesmi


1 Answers

Make sure the value in your app.config uses the env() function to get the value from the .env file.

If not, the recommended value is env('APP_ENV', 'development').

like image 85
Jerodev Avatar answered Jan 01 '26 02:01

Jerodev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!