spatie/laravel-queueable-action
Add simple queue support to Laravel “actions.” Call actions synchronously or dispatch them to the queue with $action->onQueue()->execute(), optionally choosing a queue name. Includes a configurable job class for customization.
Action classes, adhering to SOLID principles (e.g., Single Responsibility Principle).Adopt if:
laravel-horizon, redis, database queues).Look elsewhere if:
Action classes provide.Job classes or packages like spatie/laravel-jobs).For Executives: "This package lets us offload slow or non-critical tasks (e.g., sending emails, processing uploads) to background workers without writing custom queue jobs. It’s like adding ‘async’ to any business logic with a single line of code—reducing server load, improving response times, and cutting dev time by 30% for repetitive patterns. Low-risk (MIT license, 700+ stars), and it integrates seamlessly with our existing Laravel stack."
For Engineering:
*"Spatie’s laravel-queueable-action wraps queueable logic in reusable Action classes, so we can do this:
$action = new SendWelcomeEmail($user);
$action->onQueue('emails')->execute(); // Non-blocking!
No more boilerplate jobs. It’s lightweight, tested, and plays nice with Laravel’s queue drivers. Perfect for:
How can I help you explore Laravel packages today?