Create the job with Laravel's generator and make it queueable: ```bash php artisan make:job ProcessOrder ``` The class should implement `ShouldQueue`, put work in `handle()`, and receive only durable identifiers: ```php final class ProcessOrder implements ShouldQueue { public function __construct(public int $orderId) {} public function handle(): void { $order = Order::findOrFail($this->orderId); // process the order } } ``` Dispatch it with `ProcessOrder::dispatch($order->id)`. Do not put the...
Scanned 9/5/2026
Install to Claude Code
npx -y skills add HoangNguyen0403/agent-skills-standard --skill laravel-background-processing --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Laravel Background Processing?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-laravel-background-processing-agent-skills-standard)More formats (shields.io, HTML) on the badges page.
Create the job with Laravel's generator and make it queueable:
```bash
php artisan make:job ProcessOrder
```
The class should implement `ShouldQueue`, put work in `handle()`, and receive only durable identifiers:
```php
final class ProcessOrder implements ShouldQueue
{
public function __construct(public int $orderId) {}
public function handle(): void
{
$order = Order::findOrFail($this->orderId);
// process the order
}
}
```
Dispatch it with `ProcessOrder::dispatch($order->id)`. Do not put the full Eloquent model in the payload, and move work that is expensive or external out of the request path. Configure retries and a failed-job store, and use Horizon for production queue monitoring.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!