2021-01-23 20:09:16 +00:00
|
|
|
<?php
|
|
|
|
|
2021-01-23 22:07:58 +00:00
|
|
|
namespace Database\Factories;
|
2021-01-23 20:09:16 +00:00
|
|
|
|
|
|
|
use Ramsey\Uuid\Uuid;
|
|
|
|
use Pterodactyl\Models\Nest;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
class NestFactory extends Factory
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The name of the factory's corresponding model.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $model = Nest::class;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the model's default state.
|
|
|
|
*/
|
|
|
|
public function definition(): array
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'uuid' => Uuid::uuid4()->toString(),
|
|
|
|
'author' => 'testauthor@example.com',
|
|
|
|
'name' => $this->faker->word,
|
|
|
|
'description' => null,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|