Completed
Pull Request — master (#10)
by alexfloppy
07:51
created

RolesTableSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 25
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 17 1
1
<?php
2
3
namespace App\Seeds;
4
5
use DB;
6
use Illuminate\Database\Seeder;
7
8
/**
9
 * This is the comments table seeder class.
10
 *
11
 * @author Graham Campbell <[email protected]>
12
 */
13
class RolesTableSeeder extends Seeder
14
{
15
    /**
16
     * Run the database seeding.
17
     *
18
     * @return void
19
     */
20
    public function run()
21
    {
22
        DB::table('roles')->insert([
23
            [
24
                'id' => 1,
25
                'name' => 'admin',
26
                'display_name' => 'Admin',
27
                'description' => '',
28
            ],
29
            [
30
                'id' => 2,
31
                'name' => 'user',
32
                'display_name' => 'User',
33
                'description' => '',
34
            ]
35
        ]);
36
    }
37
}
38