29 lines
785 B
PHP
29 lines
785 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use App\Models\Santri;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Alumni>
|
|
*/
|
|
class AlumniFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'nama_santri' => $santri?->nama ?? $this->faker->name(),
|
|
'tahun_lulus' => $this->faker->year(),
|
|
'aktivitas_setelah_lulus' => $this->faker->randomElement(['Kuliah','Kerja','Wirausaha','Lainnya']),
|
|
'kontak' => $this->faker->optional()->phoneNumber(),
|
|
'keterangan' => $this->faker->optional()->sentence(),
|
|
];
|
|
}
|
|
}
|