PackageRoleUserPivotSeeder::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
use Illuminate\Database\Seeder;
4
5
class PackageRoleUserPivotSeeder extends Seeder {
6
7
    public function run()
8
    {	
9
    	$user = config('guardian.userModel');
10
11
        $user::find(1)->roles()->withTimeStamps()->attach([1,2]);
12
        $user::find(2)->roles()->withTimeStamps()->attach(3);
13
        $user::find(3)->roles()->withTimeStamps()->attach(1);
14
    }
15
16
}