public function enableMaintenanceMode()
    {
        $exitCode = Artisan::call('down');
        if ($exitCode === 0) {
            Session::put('admin_ip', request()->ip());
            Session::put('_enable-maintenance-mode', trans('canvas::messages.enable_maintenance_mode_success'));
        } else {
            Session::put('_enable-maintenance-mode', trans('canvas::messages.enable_maintenance_mode_error'));
        }

        return redirect()->route('canvas.admin.tools');
    }
public function enableMaintenanceMode()
    {
        $exitCode = Artisan::call('down');
        if ($exitCode === 0) {
            Session::put('admin_ip', request()->ip());
            Session::put('_enable-maintenance-mode', trans('canvas::messages.enable_maintenance_mode_success'));
        } else {
            Session::put('_enable-maintenance-mode', trans('canvas::messages.enable_maintenance_mode_error'));
        }

        return redirect()->route('canvas.admin.tools');
    }
public function enableMaintenanceMode ( ) { $ exitCode = Artisan :: call ( 'down' ) ; if ( $ exitCode === 0 ) { Session :: put ( 'admin_ip' , request ( ) -> ip ( ) ) ; Session :: put ( '_enable-maintenance-mode' , trans ( 'canvas::messages.enable_maintenance_mode_success' ) ) ; } else { Session :: put ( '_enable-maintenance-mode' , trans ( 'canvas::messages.enable_maintenance_mode_error' ) ) ; } return redirect ( ) -> route ( 'canvas.admin.tools' ) ; }
Enable Application Maintenance Mode.

@return \Illuminate\View\View
Enable Application Maintenance Mode .