Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

httzip's avatar

L5.6 - php artisan down --allow=... not working

Hello everyone ,

Im using Laravel 5.6.15 . Nginx (Centos7)

. I can not put my site into maintenance mode with options : php artisan down --allow=127.0.0.1 --allow=192.168.0.0/16 .

Its say : The "--allow" option does not exist.

Here's my screenshot : https://i.imgur.com/NnDJV6b.png

What am I doing wrong?

0 likes
5 replies
bobbybouwmann's avatar

Mmh it's working fine for me

$ php artisan down --allow=127.0.0.1 --allow=192.168.0.0/16
Application is now in maintenance mode.
$ php artisan up
Application is now live.

Are you sure you used this syntax? Also are you using the latest artisan file? If you upgraded in the past you might have missed something there!

Laramaxou's avatar

Be sure of your version with : php artisan --version, --allow do not exist for versions prior to 5.6

DavidPetrov's avatar

Is there anything new about the issue? I'm having the same problem with laravel 5.6.18. Seems so irational to me...

Please or to participate in this conversation.