Create a route
Route::get('/maintenance_down', 'OptimizeController@maintenance_down');
Route::get('/maintenance_up', 'OptimizeController@maintenance_up');
public function maintenance_down()
{
$ip = \Request::ip();
Artisan::call('down',['--allow'=>$ip]);
return back();
}
public function maintenance_up()
{
Artisan::call('up');
return back();
}
Route::get('/maintenance_down', 'OptimizeController@maintenance_down');
Route::get('/maintenance_up', 'OptimizeController@maintenance_up');
public function maintenance_down()
{
$ip = \Request::ip();
Artisan::call('down',['--allow'=>$ip]);
return back();
}
public function maintenance_up()
{
Artisan::call('up');
return back();
}
No comments:
Post a Comment