soroosh / laravel-bus
There is no license information available for the latest version (0.1.1) of this package.
Enhanced laravel illuminate\bus
0.1.1
2023-01-05 14:56 UTC
Requires
- ext-redis: *
Requires (Dev)
- orchestra/testbench: ^7.17
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-11-05 18:57:13 UTC
README
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"); } }