RoleTableSeeder::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 25

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 25
ccs 0
cts 6
cp 0
rs 9.52
c 0
b 0
f 0
cc 1
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
            ],
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