Laravel 5 maintenance mode turn on without artisan

后端 未结 6 1407
-上瘾入骨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

    I think the right answer is missing here.. You could add your route to app/http/middleware/CheckForMaintenanceMode.php

    protected $except = [
            //here
    ];
    

    So It never would be off.

提交回复
热议问题