File manager - Edit - /home/autoph/public_html/projects/database/seeders/SupportingDocumentSeeder.php
Back
<?php namespace Database\Seeders; use App\Models\SupportingDocument; use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class SupportingDocumentSeeder extends Seeder { /** * Run the database seeds. */ public function run(): void { $supportingDocuments = [ [ 'module_name' => 'EXECOM Referendum Sheet', 'document_id' => 1, 'created_at' => now(), 'plantilla' => true, 'updated_at' => now(), ], [ 'module_name' => 'Job Design', 'document_id' => 1, 'plantilla' => true, 'created_at' => now(), 'updated_at' => now(), ], [ 'module_name' => 'Performance Commitment Plan', 'document_id' => 1, 'plantilla' => true, 'created_at' => now(), 'updated_at' => now(), ], [ 'module_name' => 'Work Program for Contractual/Casual', 'document_id' => 1, 'plantilla' => false, 'created_at' => now(), 'updated_at' => now(), ], [ 'module_name' => 'Job Design', 'document_id' => 2, 'plantilla' => null, 'created_at' => now(), 'updated_at' => now(), ], [ 'module_name' => 'Performance Evaluation Form', 'document_id' => 2, 'plantilla' => null, 'created_at' => now(), 'updated_at' => now(), ], [ 'module_name' => 'Candidate`s Profile', 'document_id' => 2, 'plantilla' => null, 'created_at' => now(), 'updated_at' => now(), ], ]; DB::table('supporting_documents')->insert($supportingDocuments); } public function reset() { SupportingDocument::tuncate(); } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings