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:
Laravel 8 introduced secret
in maintenance mode, in which you can bypass the maintenance mode by providing a secret, then your Artisan::call
would work.
You could add your routes to the $except
var in CheckForMaintenanceMode
middleware to bypass the check. Then your site/live
route would work just fine.