todo/database/seeders/ProjectUserSeeder.php

48 lines
1015 B
PHP
Raw Permalink Normal View History

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class ProjectUserSeeder extends Seeder
{
public function run(): void
{
DB::table('project_user')->insert([
[
'project_id' => 1,
'user_id' => 2,
],
[
'project_id' => 1,
'user_id' => 4,
],
[
'project_id' => 2,
'user_id' => 1,
],
[
'project_id' => 2,
'user_id' => 3,
],
[
'project_id' => 2,
'user_id' => 4,
],
[
'project_id' => 3,
'user_id' => 1,
],
[
'project_id' => 3,
'user_id' => 2,
],
[
'project_id' => 3,
'user_id' => 3,
],
]);
}
}