MeetCheckTemplateFactory.php
1 <?php 2 3 namespace Database\Factories; 4 5 use App\Models\MeetType; 6 use Illuminate\Database\Eloquent\Factories\Factory; 7 8 /** 9 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\MeetCheckTemplate> 10 */ 11 class MeetCheckTemplateFactory extends Factory 12 { 13 /** 14 * Define the model's default state. 15 * 16 * @return array<string, mixed> 17 */ 18 public function definition() 19 { 20 return [ 21 'meet_type_id' => MeetType::inRandomOrder()->first()->id, 22 'requirement' => 'Check that: ' . $this->faker->sentence(), 23 'point' => 'a', 24 ]; 25 } 26 }