role->equals(Role::admin())) { return $next($request); } return redirect()->route('home'); } }