adrema/database/seeders/UserSeeder.php

22 lines
381 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(),
2022-03-11 20:19:17 +01:00
'password' => Hash::make('admin'),
2020-04-10 20:32:12 +02:00
]);
}
}