File manager - Edit - /var/www/ratemypay_dev/database/seeders/DepartmentSeeder.php
Back
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class DepartmentSeeder extends Seeder { public function run(): void { $departments = [ 'Engineering', 'Product', 'Design', 'Data & Analytics', 'Marketing', 'Sales', 'Customer Success', 'Human Resources', 'Finance & Accounting', 'Legal & Compliance', 'Operations', 'IT & Infrastructure', 'Security', 'Research & Development', 'Business Development', 'Strategy & Planning', 'Communications & PR', 'Procurement', 'Logistics & Supply Chain', 'Administration', ]; $now = now(); $rows = array_map(fn ($name) => [ 'name' => $name, 'created_at' => $now, 'updated_at' => $now, ], $departments); // insertOrIgnore DB::table('departments')->insertOrIgnore($rows); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.11 |
proxy
|
phpinfo
|
Settings