mirror of
https://github.com/archtechx/tenancy-queue-tester.git
synced 2025-12-12 09:44:03 +00:00
22 lines
546 B
PHP
Executable file
22 lines
546 B
PHP
Executable file
<?php
|
|
|
|
namespace App\Jobs;
|
|
|
|
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\Support\Str;
|
|
|
|
class FooJob implements ShouldQueue
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
public function handle(): void
|
|
{
|
|
User::create(['name' => Str::random(12), 'email' => Str::random(12), 'password' => Str::random(12)]);
|
|
}
|
|
}
|
|
|