Files
GSB-Construction/Modules/DocumentManagement/database/seeders/DocumentCategorySeeder.php
Ajjj 936ae1c6b2
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled
feat: implement comprehensive dashboard controller and modular administrative and project management interfaces
2026-08-03 18:28:52 +08:00

30 lines
1.3 KiB
PHP

<?php
namespace Modules\DocumentManagement\Database\Seeders;
use Illuminate\Database\Seeder;
use Modules\DocumentManagement\Models\DocumentCategory;
class DocumentCategorySeeder extends Seeder
{
public function run(): void
{
$categories = [
['name' => 'Architectural', 'description' => 'Architectural drawings, floor plans, and elevation specs.'],
['name' => 'Structural', 'description' => 'Structural engineering drawings, rebar schedules, and foundation plans.'],
['name' => 'MEP', 'description' => 'Mechanical, Electrical, and Plumbing engineering documentation.'],
['name' => 'Permits', 'description' => 'Building permits, occupancy certificates, and government clearances.'],
['name' => 'Contracts', 'description' => 'Client agreements, contractor subcontracts, and change orders.'],
['name' => 'Safety & Compliance', 'description' => 'OSHA safety reports, site inspection logs, and environmental audits.'],
['name' => 'Financial & Invoices', 'description' => 'Billings, payment certificates, and purchase receipts.'],
];
foreach ($categories as $cat) {
DocumentCategory::firstOrCreate(
['name' => $cat['name']],
['description' => $cat['description']]
);
}
}
}