UsersSeeder.php 426 Bytes
Newer Older
Dominik Hebeler's avatar
Dominik Hebeler committed
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

use Illuminate\Database\Seeder;

class UsersSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
14
15
16
17
18
19
20
21
        DB::table('users')->truncate();
        DB::table('users')->insert(
            [
                'email' => 'admin',
                'name' => 'admin',
                'password' => Hash::make('admin'),
            ]
        );
Dominik Hebeler's avatar
Dominik Hebeler committed
22
23
    }
}