*/ class PaymentFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'booking_id' => Booking::factory(), 'amount' => 10000, 'paid_on' => now()->toDateString(), 'method' => PaymentMethod::Transfer, ]; } }