28 lines
602 B
PHP
28 lines
602 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\DocumentType;
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DocumentTypeSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$documentTypes = [
|
|
['name' => 'Surat Biasa'],
|
|
['name' => 'Surat Rahasia'],
|
|
['name' => 'Surat Izin'],
|
|
['name' => 'Surat Keputusan'],
|
|
];
|
|
|
|
foreach ($documentTypes as $documentType) {
|
|
DocumentType::create($documentType);
|
|
}
|
|
}
|
|
}
|