Commit awal: prototipe UI SIAKAD Untan
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories\Superuser;
|
||||
|
||||
use App\Models\Superuser\Superuser;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<Superuser>
|
||||
*/
|
||||
class SuperuserFactory extends Factory
|
||||
{
|
||||
protected $model = Superuser::class;
|
||||
|
||||
/** @return array<string, mixed> */
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'user_id' => User::factory()->superuser(),
|
||||
'nip' => fake()->unique()->numerify('##################'),
|
||||
'jabatan' => 'Administrator Sistem',
|
||||
'unit_kerja' => 'Pusat Data dan Teknologi Informasi',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user