Laravel 5 maintenance mode turn on without artisan

后端 未结 6 1444
-上瘾入骨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 19:06

    If your project is already down, you cannot call another function.

    What happens after you run php artisan down is that it creates a file named down inside storage/framework. After running php artisan up the file is removed.

    You can create the file manually inside storage/framework. It will down your project. When you want to take your project live again, just remove the file.

提交回复
热议问题