database/seeders/UserSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $users = [
            ['name' => 'Test Spiller', 'email' => 'test@test.com', 'password' => Hash::make('password')],
        ];
        foreach($users as $user)
        {
            User::create($user);
        }
    }
public function run ( ) { $ users = [ [ 'name' => 'Test Spiller' , 'email' => 'test@test.com' , 'password' => Hash :: make ( 'password' ) ] , ] ; foreach ( $ users as $ user ) { User :: create ( $ user ) ; } }
Run the database seeds.
Run the database seeds .