Laravel 5 maintenance mode turn on without artisan

后端 未结 6 1408
-上瘾入骨i
-上瘾入骨i 2021-01-31 18:38

Is there any possibility to turn on and turn off Laravel 5 maintenance without php artisan up and down commands when my website is being hosted ?

What I\'ve done:

6条回答
  •  无人共我
    2021-01-31 18:57

    when you run artisan down. site is not available so when try to call up, your IP can't access site. you must call down with your IP exception.

    php artisan down --allow=127.0.0.1 --allow=192.168.0.0/16
    

    or add ::1 to local.

    to make that in route without command try to save this command in specific one and call it.

提交回复
热议问题