laravel-bus maintained by soroosh
Description
Enhanced laravel illuminate\bus
Author
Last update
2023/01/05 15:56
(dev-master)
Downloads
13
Laravel Bus
Enhanced laravel Illuminate\Bus.
- Log jobs when dispatch fails
How to use
Create a new job
php artisan laravel-bus:make-job DummyJob
Or just extends Soroosh\LaravelBus\Job\DispatchableShouldQueue in existing job:
<?php
namespace App\Jobs;
use Soroosh\LaravelBus\Job\DispatchableShouldQueue;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class MockJob extends DispatchableShouldQueue
{
use InteractsWithQueue;
use Queueable;
use SerializesModels;
public function handle()
{
Log::info("Hello from MockJob");
}
}