File: /home/mocapict-106/mocapictures.kr/database/seeders/IntroductionSeeder.php
<?php
namespace Database\Seeders;
use App\Models\Introduction;
use Illuminate\Database\Seeder;
class IntroductionSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$introduction = [
'id' => 1,
'introduction_title' => '모카 회사 소개서',
'introduction_file' => 'introductions/moca_2023.pdf',
];
Introduction::query()->create([
'id' => $introduction['id'],
'introduction_title' => $introduction['introduction_title'],
'introduction_file' => $introduction['introduction_file']
]);
}
}