*/ class MessageFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'title' => $this->faker->word, 'text' => $this->faker->word, 'sender_user_id' => User::factory(), 'recipient_user_id' => User::factory(), 'status' => $this->faker->randomElement(['Read', 'UnRead']), ]; } }