Update database/seeders/DatabaseSeeder.php

This commit is contained in:
Václav Španinger 2024-08-07 19:22:55 +00:00
parent 9abc4c4961
commit 702a1e7d46

View File

@ -14,7 +14,7 @@ class DatabaseSeeder extends Seeder
public function run(): void public function run(): void
{ {
// User::factory(10)->create(); // User::factory(10)->create();
if (empty(User::where('email', 'test@example.co')->first())){ if (empty(User::where('email', 'test@example.com')->first())){
User::factory()->create([ User::factory()->create([
'name' => 'Test User', 'name' => 'Test User',
'email' => 'test@example.com', 'email' => 'test@example.com',