adrema/database/seeders/UserSeeder.php

25 lines
447 B
PHP
Raw Normal View History

2020-04-10 20:32:12 +02:00
<?php
2022-08-30 15:27:49 +02:00
namespace Database\Seeders;
2022-02-12 00:41:52 +01:00
use App\User;
2020-04-10 20:32:12 +02:00
use Illuminate\Database\Seeder;
2022-08-30 15:27:49 +02:00
use Illuminate\Support\Facades\Hash;
2020-04-10 20:32:12 +02:00
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
]);
}
}