RolesTableSeeder::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 0
cts 14
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Backups\Seeds;
2
3
use Arcanesoft\Auth\Seeds\RolesSeeder;
4
5
/**
6
 * Class     RolesTableSeeder
7
 *
8
 * @package  Arcanesoft\Backups\Seeds
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'        => 'Backups Manager',
26
                'description' => 'The Backups manager role.',
27
                'is_locked'   => true,
28
            ],
29
        ]);
30
31
        $this->syncAdminRole();
32
        $this->syncRoles([
33
            'backups-manager' => 'backups.',
34
        ]);
35
    }
36
}
37