has('petugas_id')) { return redirect('/')->with('error', 'Session login hilang, silakan login ulang'); } return $next($request); } }