Path: blob/1.0-develop/database/Factories/EggFactory.php
7459 views
<?php12namespace Database\Factories;34use Ramsey\Uuid\Uuid;5use Pterodactyl\Models\Egg;6use Illuminate\Database\Eloquent\Factories\Factory;78class EggFactory extends Factory9{10/**11* The name of the factory's corresponding model.12*13* @var string14*/15protected $model = Egg::class;1617/**18* Define the model's default state.19*/20public function definition(): array21{22return [23'uuid' => Uuid::uuid4()->toString(),24'name' => $this->faker->name,25'description' => implode(' ', $this->faker->sentences()),26'startup' => 'java -jar test.jar',27];28}29}303132