check()) { return redirect('login')->with('error', 'Anda harus login terlebih dahulu!'); } return $next($request); } }