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

RolesTableSeeder::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 17
rs 9.4285
cc 1
eloc 10
nc 1
nop 0
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