Files

34 lines
645 B
PHP
Raw Permalink Normal View History

2021-01-23 12:09:16 -08:00
<?php
2026-10-05 18:10:18 -04:00
declare(strict_types=1);
2021-01-23 12:09:16 -08:00
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
2026-10-05 18:10:18 -04:00
use Pterodactyl\Models\Schedule;
use Pterodactyl\Models\Server;
2021-01-23 12:09:16 -08:00
2026-10-05 18:10:18 -04:00
/**
* @extends Factory<Schedule>
*/
2021-01-23 12:09:16 -08:00
class ScheduleFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Schedule::class;
/**
* Define the model's default state.
*/
public function definition(): array
{
return [
2026-10-05 18:10:18 -04:00
'server_id' => Server::factory()->withRelationships(),
'name' => fake()->firstName(),
2021-01-23 12:09:16 -08:00
];
}
}