21 lines
461 B
PHP
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']),
|
|
];
|
|
}
|
|
}
|