role != 'shop-owner' && Auth::user()->role != 'staff')) { return $next($request); } // Redirect if the user is not an admin return redirect('/'); } }