Laravel 5 maintenance mode turn on without artisan -


is there possibility turn on , turn off laravel 5 maintenance without php artisan , down commands when website being hosted ?

what i've done:

route::get('site/shutdown', function(){     return artisan::call('down'); });  route::get('site/live', function(){     return artisan::call('up'); });  

the first route working fine. when call site/live site still shuted down. can cause problem ?

if project down, cannot call function.

what happened after run php artisan down. creates file named down inside storage/framework. after running php artisan up removes file.

you can create file manually inside storage/framework. down project. when want live project again, remove file.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -