RoleTableSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
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 36
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 25 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
            ],
28
            [
29
                'name'        => 'Moderator',
30
                'description' => 'The system moderator role.',
31
            ],
32
            [
33
                'name'        => 'Member',
34
                'description' => 'The member role.',
35
            ],
36
            [
37
                'name'        => 'Auth Moderator',
38
                'description' => 'The auth moderator role.',
39
            ],
40
        ]);
41
42
        $this->syncRoles([
43
            'auth-moderator' => 'auth.',
44
        ]);
45
    }
46
}
47