DocumentTypeSeeder.php
1 <?php 2 3 namespace Database\Seeders; 4 5 use App\Models\DocumentType; 6 use Illuminate\Database\Seeder; 7 8 class DocumentTypeSeeder extends Seeder 9 { 10 /** 11 * Run the database seeds. 12 * 13 * @return void 14 */ 15 public function run() 16 { 17 // DocumentType::create([ 18 // 'code' => 'SOL', 19 // 'description' => 'Request', 20 // 'internal' => false, 21 // ]); 22 DocumentType::create([ 23 'code' => 'ACT', 24 'description' => 'Records', 25 'internal' => true, 26 ]); 27 DocumentType::create([ 28 'code' => 'CER', 29 'description' => 'Certificates', 30 'internal' => true, 31 ]); 32 // DocumentType::create([ 33 // 'code' => 'EML', 34 // 'description' => 'Emails', 35 // 'internal' => true, 36 // ]); 37 DocumentType::create([ 38 'code' => 'INF', 39 'description' => 'Reports', 40 'internal' => true, 41 ]); 42 DocumentType::create([ 43 'code' => 'INT', 44 'description' => 'Technical Interpretation', 45 'internal' => true, 46 ]); 47 DocumentType::create([ 48 'code' => 'MAN', 49 'description' => 'Manuals', 50 'internal' => true, 51 ]); 52 DocumentType::create([ 53 'code' => 'NOT', 54 'description' => 'Notifications', 55 'internal' => true, 56 ]); 57 DocumentType::create([ 58 'code' => 'PO', 59 'description' => 'Operating procedures', 60 'internal' => true, 61 ]); 62 DocumentType::create([ 63 'code' => 'POL', 64 'description' => 'Policies', 65 'internal' => true, 66 ]); 67 DocumentType::create([ 68 'code' => 'RES', 69 'description' => 'Resolutions', 70 'internal' => true, 71 ]); 72 DocumentType::create([ 73 'code' => 'EXT', 74 'description' => 'External', 75 'internal' => false, 76 'validate' => true, 77 'approve' => true, 78 ]); 79 80 DocumentType::create([ 81 'code' => 'EVI', 82 'description' => 'Internal', 83 'internal' => false, 84 'validate' => true, 85 'approve' => true, 86 ]); 87 88 DocumentType::create([ 89 'code' => 'EML', 90 'description' => 'EML', 91 'internal' => true, 92 ]); 93 } 94 }