mirror of
https://github.com/archtechx/tenancy-queue-tester.git
synced 2025-12-12 08:44:04 +00:00
initial commit
This commit is contained in:
commit
52d95e9370
12 changed files with 525 additions and 0 deletions
19
setup/FooJob.php
Normal file
19
setup/FooJob.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Queue\Queueable;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class FooJob implements ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
public function handle(): void
|
||||
{
|
||||
User::create(['name' => Str::random(12), 'email' => Str::random(12), 'password' => Str::random(12)]);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue