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

UsersTableSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 43
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 43
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B run() 0 35 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 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