Dummy Laravel queue driver to run jobs as detached HTTP requests.
This is a dummy driver for Laravel's queue subsystem.
When you schedule a job through this queue, an HTTP request is sent to the application itself (on a dedicated route) and it will not wait for a response, so to let the job to be executed as a different detached state while you continue elaboration or even return a response to the user.
Useful to have actual asyncronous jobs without having to deal with worker processes, dedicated services, complex environments or whatever, but absolutely not reccomended for intensive scale.
composer require madbob/laravel-queue-loopback
In your .env file, set:
In your config/queue.php, add the following block among available connections:
'loopback' => [ 'driver' => 'loopback', /* The key is intended to protect the route used for internal execution, as it is still a public route and it is unprotected by the `auth` middleware or other native authentication methods. */ 'key' => 'put_here_a_random_key', ],
But, not as usual, you have not to execute any
php artisan queue:work command or similar.
The loopback driver does not handles different queues nor priorities.