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

RoleTableSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 40
ccs 0
cts 28
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
B run() 0 29 1
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