Passed
Push — dev5 ( 60964f...52deb7 )
by Ron
07:11
created

UserTableSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 6 1
1
<?php
2
3
use App\User;
4
use App\UserPermissions;
5
use Illuminate\Database\Seeder;
6
7
class UserTableSeeder extends Seeder
8
{
9
    /**
10
     * Run the database seeds.
11
     *
12
     * @return void
13
     */
14
    public function run()
15
    {
16
        //  Create the test users
17
        factory(App\User::class, 15)->create()->each(function($user)
18
        {
19
            $user->UserPermissions()->save(factory(App\UserPermissions::class)->make());
20
        });
21
    }
22
}
23