mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-05-07 20:32:26 +00:00
83 lines
5.8 KiB
PHP
83 lines
5.8 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\FailedJob;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<FailedJob>
|
|
*/
|
|
class FailedJobFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
$uuid = $this->faker->uuid;
|
|
|
|
return [
|
|
'uuid' => $uuid,
|
|
'connection' => 'database',
|
|
'queue' => 'default',
|
|
'payload' => [
|
|
'uuid' => $uuid,
|
|
'displayName' => 'App\Jobs\Test\TestJob',
|
|
'job' => 'Illuminate\Queue\CallQueuedHandler@call',
|
|
'maxTries' => null,
|
|
'maxExceptions' => null,
|
|
'failOnTimeout' => false,
|
|
'backoff' => null,
|
|
'timeout' => null,
|
|
'retryUntil' => null,
|
|
'data' => [
|
|
'commandName' => 'App\Jobs\Test\TestJob',
|
|
'command' => 'O:21:"App\Jobs\Test\TestJob":3:{s:27:" |