DatabaseSeeder.php 456 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Database\Seeders;
  3. use App\Models\User;
  4. // use Illuminate\Database\Console\Seeds\WithoutModelEvents;
  5. use Illuminate\Database\Seeder;
  6. class DatabaseSeeder extends Seeder
  7. {
  8. /**
  9. * Seed the application's database.
  10. */
  11. public function run(): void
  12. {
  13. // User::factory(10)->create();
  14. User::factory()->create([
  15. 'name' => 'Test User',
  16. 'email' => 'test@example.com',
  17. ]);
  18. }
  19. }