withoutVite(); } /** * Buat akun untuk role tertentu beserta baris profilnya. * * @param array $attributes kolom akun (name, username, is_active, ...) * @param array $profile kolom profil (nim, nip, ...) */ protected function userWithRole(Role $role, array $attributes = [], array $profile = []): User { $user = User::factory()->state(['role' => $role])->create($attributes); $role->profileModel()::factory()->create(['user_id' => $user->id, ...$profile]); return $user; } }