session()->get('user') == null) { return redirect()->route('login'); } return $next($request); } }