has('user_data')) { return redirect()->route('login'); } return $next($request); } }