RolesTableSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 16 1
1
<?php namespace Arcanesoft\Media\Seeds;
2
3
use Arcanesoft\Auth\Seeds\RolesSeeder;
4
5
/**
6
 * Class     RolesTableSeeder
7
 *
8
 * @package  Arcanesoft\Media\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'        => 'Medias Manager',
26
                'description' => 'The Medias manager role.',
27
                'is_locked'   => true,
28
            ],
29
        ]);
30
31
        $this->syncAdminRole();
32
33
        $this->syncRoles([
34
            'medias-manager' => 'media.medias.',
35
        ]);
36
    }
37
}
38