user_type == 'admin' || Auth::user()->user_type == 'staff')) { return $next($request); } return redirect()->route('admin.login'); } }