route('admin.auth.login'); } $user = Auth::user(); if ($user->level !== 'مدیر') { abort(404, 'not found'); } return $next($request); } }