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 Illuminate\Support\Str;
|
|
|
|
|
use Pterodactyl\Models\Location;
|
2021-01-23 12:09:16 -08:00
|
|
|
|
2025-12-24 16:43:00 -08:00
|
|
|
/**
|
2026-10-05 18:10:18 -04:00
|
|
|
* @extends Factory<Location>
|
2025-12-24 16:43:00 -08:00
|
|
|
*/
|
2021-01-23 12:09:16 -08:00
|
|
|
class LocationFactory extends Factory
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Define the model's default state.
|
|
|
|
|
*/
|
|
|
|
|
public function definition(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'short' => Str::random(8),
|
|
|
|
|
'long' => Str::random(32),
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|