role !== 'user') { return redirect('/login')->with('error', 'Akses hanya untuk karyawan.'); } return $next($request); } }