RolesTableSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
eloc 12
dl 0
loc 29
ccs 0
cts 17
cp 0
rs 10
c 3
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 19 1
1
<?php namespace Arcanesoft\Foundation\Seeds;
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 RolesTableSeeder 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'        => 'LogViewer Manager',
26
                'description' => 'The LogViewer manager role.',
27
                'is_locked'   => true,
28
            ],[
29
                'name'        => 'RouteViewer Manager',
30
                'description' => 'The RouteViewer manager role.',
31
                'is_locked'   => true,
32
            ],
33
        ]);
34
35
        $this->syncAdminRole();
36
37
        $this->syncRoles([
38
            'logviewer-manager' => 'foundation.logviewer.',
39
            'routeviewer-manager' => 'foundation.routeviewer.',
40
        ]);
41
    }
42
}
43