Undangan/backend-baru/database/factories/RsvpFactory.php
2025-10-27 15:56:33 +07:00

21 lines
461 B
PHP

<?php
namespace Database\Factories;
use App\Models\Rsvp;
use Illuminate\Database\Eloquent\Factories\Factory;
class RsvpFactory extends Factory
{
protected $model = Rsvp::class;
public function definition(): array
{
return [
'nama' => $this->faker->name(),
'pesan' => $this->faker->sentence(8),
'status_kehadiran' => $this->faker->randomElement(['hadir', 'tidak_hadir', 'mungkin']),
];
}
}