Completed
Push — master ( 3d5caa...ae7583 )
by ARCANEDEV
04:59
created

RoleTableSeeder::run()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 29
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 29
ccs 0
cts 28
cp 0
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 16
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Auth\Seeds\Foundation;
2
3
use Arcanesoft\Auth\Seeds\RolesSeeder;
4
5
/**
6
 * Class     RoleTableSeeder
7
 *
8
 * @package  Arcanesoft\Auth\Seeds\Foundation
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class RoleTableSeeder extends RolesSeeder
12
{
13
    /* -----------------------------------------------------------------
14
     |  Main Methods
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Run the database seeds.
20
     */
21
    public function run()
22
    {
23
        $this->seed([
24
            [
25
                'name'        => 'Administrator',
26
                'description' => 'The system administrator role.',
27
                'is_locked'   => true,
28
            ],
29
            [
30
                'name'        => 'Moderator',
31
                'description' => 'The system moderator role.',
32
                'is_locked'   => true,
33
            ],
34
            [
35
                'name'        => 'Member',
36
                'description' => 'The member role.',
37
                'is_locked'   => true,
38
            ],
39
            [
40
                'name'        => 'Auth Moderator',
41
                'description' => 'The auth moderator role.',
42
                'is_locked'   => true,
43
            ],
44
        ]);
45
46
        $this->syncRoles([
47
            'auth-moderator' => 'auth.',
48
        ]);
49
    }
50
}
51