Files
pterodactyl-panel/database/Factories/ScheduleFactory.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

34 lines
645 B
PHP

<?php
declare(strict_types=1);
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Pterodactyl\Models\Schedule;
use Pterodactyl\Models\Server;
/**
* @extends Factory<Schedule>
*/
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 [
'server_id' => Server::factory()->withRelationships(),
'name' => fake()->firstName(),
];
}
}