is_admin == 1) { return redirect('/dashboard')->with('message', 'Login berhasil sebagai admin.'); } else { return $next($request); } } }