PackageRoleUserPivotSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 8 1
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
}