adrema/database/seeders/UserSeeder.php

22 lines
380 B
PHP
Raw Normal View History

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