Files
2026-04-09 18:40:09 -06:00

48 lines
1.3 KiB
PHP

<?php
namespace Database\Seeders;
use App\Models\Product;
use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
// User::factory(10)->create();
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
]);
Product::create([
'name' => 'Ant Deterrant',
'description' => 'A common problem we can easily take care of!',
'price_cents' => 10000,
'image_url' => 'https://shopping-cart.test/storage/products/ant.jpg'
]);
Product::create([
'name' => 'Spider Removal',
'description' => 'More aggressive that just removing the little ones.',
'price_cents' => 25000,
'image_url' => 'https://shopping-cart.test/storage/products/spider.jpg'
]);
Product::create([
'name' => 'Infestation Mitigation',
'description' => 'Time to call in DOOM guy.',
'price_cents' => 50000,
'image_url' => 'https://shopping-cart.test/storage/products/hydralisk.webp'
]);
}
}