adrema/database/seeds/UserSeeder.php

21 lines
375 B
PHP
Raw Normal View History

2020-04-10 20:32:12 +02:00
<?php
use Illuminate\Database\Seeder;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
factory(App\User::class)->create([
'email' => 'admin@example.com',
'email_verified_at' => now(),
'password' => Hash::make('admin')
]);
}
}