1
0
Fork 0
mirror of https://github.com/archtechx/tenancy-queue-tester.git synced 2025-12-12 06:44:05 +00:00

support older Laravel versions better (move away from the new Queueable trait)

This commit is contained in:
Samuel Štancl 2024-12-31 08:24:51 +01:00
parent a5c01c02b0
commit fd830beaf7

View file

@ -3,13 +3,16 @@
namespace App\Jobs; namespace App\Jobs;
use App\Models\User; use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;
use Illuminate\Support\Str; use Illuminate\Support\Str;
class FooJob implements ShouldQueue class FooJob implements ShouldQueue
{ {
use Queueable; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle(): void public function handle(): void
{ {