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 at any point of time.
I have successfully down the website by using
Route::get('shut/down', function() {
`Artisan::call('down');`
});
But when I want my application to back up using this
Route::get('bring/the/application/back/up', function()
{
Artisan::call('up');
});
But this isn't working because my website is already down so this won't work. But in command line we have some commands through which we can Exclude IP addresses for maintenance mode.
Example :
php artisan down --allow=127.0.0.1 --allow=192.168.0.0/16
Do we have any workaround to exclude some selected IP addresses without command line method or bring the site back up without using commands ?