48 lines
1015 B
PHP
48 lines
1015 B
PHP
|
<?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,
|
||
|
],
|
||
|
]);
|
||
|
}
|
||
|
}
|