Laravel 5 Bring site up and down without commands - (PHP artisan down and up)

Viewed 1107

I have a Laravel 5.6 website where I want this functionality to be enabled for a non-technical admin, so that he can bring the website down or up as he want to without running any commands. Is there any method to do this with the help of controllers ?

1 Answers

You can call artisan commands on controllers. Artisan::call('up'); or Artisan::call('down'); you can link this in a button click or else

Related