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

UsersTableSeeder::run()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 35
Code Lines 22

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 35
rs 8.8571
cc 1
eloc 22
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 UsersTableSeeder extends Seeder
14
{
15
    /**
16
     * Run the database seeding.
17
     *
18
     * @return void
19
     */
20
    public function run()
21
    {
22
        DB::table('users')->insert([
23
            [
24
                'id' => 1,
25
                'name' => 'Admin',
26
                'email' => '[email protected]',
27
                'password' => bcrypt('password'),
28
            ],
29
            [
30
                'id' => 2,
31
                'name' => 'User',
32
                'email' => '[email protected]',
33
                'password' => bcrypt('password'),
34
            ],
35
            [
36
                'id' => 3,
37
                'name' => 'Alice',
38
                'email' => '[email protected]',
39
                'password' => bcrypt('password'),
40
            ],
41
            [
42
                'id' => 4,
43
                'name' => 'Mark',
44
                'email' => '[email protected]',
45
                'password' => bcrypt('password'),
46
            ],
47
            [
48
                'id' => 5,
49
                'name' => 'Lukas',
50
                'email' => '[email protected]',
51
                'password' => bcrypt('password'),
52
            ]
53
        ]);
54
    }
55
}
56