mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 21:26:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			649 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			649 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Database\Factories;
 | |
| 
 | |
| use Ramsey\Uuid\Uuid;
 | |
| use App\Models\Egg;
 | |
| use Illuminate\Database\Eloquent\Factories\Factory;
 | |
| 
 | |
| class EggFactory extends Factory
 | |
| {
 | |
|     /**
 | |
|      * The name of the factory's corresponding model.
 | |
|      *
 | |
|      * @var string
 | |
|      */
 | |
|     protected $model = Egg::class;
 | |
| 
 | |
|     /**
 | |
|      * Define the model's default state.
 | |
|      */
 | |
|     public function definition(): array
 | |
|     {
 | |
|         return [
 | |
|             'uuid' => Uuid::uuid4()->toString(),
 | |
|             'name' => $this->faker->name(),
 | |
|             'description' => implode(' ', $this->faker->sentences()),
 | |
|             'startup' => 'java -jar test.jar',
 | |
|         ];
 | |
|     }
 | |
| }
 | 
