adrema/database/seeders/UserSeeder.php

22 lines
381 B
PHP

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