QueueRoutes
class QueueRoutes (View source)
Properties
| protected array<class-string, array|string> | $routes | The mapping of class names to their default routes. |
Methods
Get the queue connection that a given queueable instance should be routed to.
Get the queue that a given queueable instance should be routed to.
Get the route for a given queueable instance.
Register the queue route for the given class.
Get all registered queue routes.
Details
string|null
getConnection(object $queueable)
Get the queue connection that a given queueable instance should be routed to.
string|null
getQueue(object $queueable)
Get the queue that a given queueable instance should be routed to.
array|string|null
getRoute(object $queueable)
Get the route for a given queueable instance.
void
set(array|string $class, UnitEnum|string|null $queue = null, UnitEnum|string|null $connection = null)
Register the queue route for the given class.
array<class-string, array|string>
all()
Get all registered queue routes.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.