Queues

Queues Introduction Connections Vs. Queues Driver Prerequisites Creating Jobs Generating Job Classes Class Structure Dispatching Jobs Delayed Dispatching Customizing The Queue & Connection Error Handling Running The Queue Worker Queue Priorities Queue Workers & Deployment Job Expirations & Timeouts Supervisor Configuration Dealing With Failed Jobs Cleaning Up After Failed Jobs Failed Job Events Retrying Failed Jobs Job Events Introduction Laravel queues provide a unified

QueueServiceProvider

QueueServiceProvider class QueueServiceProvider extends ServiceProvider (View source) Methods void __construct(Application $app) Create a new service provider instance. from ServiceProvider static array pathsToPublish(string $provider = null, string $group = null) Get the paths to publish. from ServiceProvider void commands(array|mixed $commands) Register the package's custom Artisan commands. from ServiceProvider array provides() Get the services provided by the provider.

QueueServiceProvider::commands()

void commands(array|mixed $commands) Register the package's custom Artisan commands. Parameters array|mixed $commands Return Value void

QueueServiceProvider::compiles()

static array compiles() Get a list of files that should be compiled for the package. Return Value array

QueueServiceProvider::isDeferred()

bool isDeferred() Determine if the provider is deferred. Return Value bool

QueueServiceProvider::pathsToPublish()

static array pathsToPublish(string $provider = null, string $group = null) Get the paths to publish. Parameters string $provider string $group Return Value array

QueueServiceProvider::provides()

array provides() Get the services provided by the provider. Return Value array

QueueServiceProvider::register()

void register() Register the service provider. Return Value void

QueueServiceProvider::registerConnectors()

void registerConnectors(QueueManager $manager) Register the connectors on the queue manager. Parameters QueueManager $manager Return Value void

QueueServiceProvider::registerRestartCommand()

void registerRestartCommand() Register the queue restart console command. Return Value void