ok
Direktori : /home2/selectio/www/bharath/a1tex.in/app/Http/Middleware/ |
Current File : /home2/selectio/www/bharath/a1tex.in/app/Http/Middleware/MaintenanceModeMiddleware.php |
<?php namespace App\Http\Middleware; use App\CPU\Helpers; use Closure; class MaintenanceModeMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $maintenance_mode = Helpers::get_business_settings('maintenance_mode') ?? 0; if ($maintenance_mode) { return redirect()->route('maintenance-mode'); } return $next($request); } }