Clean DatabaseSeeder user seeding

This commit is contained in:
NoAvatar 2024-10-16 02:48:25 +10:00
parent 2bb6718070
commit 300f3be8b5

View File

@ -2,22 +2,12 @@
namespace Database\Seeders; namespace Database\Seeders;
use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder; use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder class DatabaseSeeder extends Seeder
{ {
/**
* Seed the application's database.
*/
public function run(): void public function run(): void
{ {
// User::factory(10)->create(); //
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
]);
} }
} }