[Back] <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Product; // ✅ IMPORTANT
class ProductSeeder extends Seeder
{
public function run(): void
{
Product::updateOrCreate(
['slug' => 'starter-course'],
[
'name' => 'Starter Course',
'short_description' => 'A simple marketing product with video.',
'description' => 'Full description here...',
'video_url' => 'https://www.youtube.com/embed/dQw4w9WgXcQ',
'hero_image' => null,
'price_cents' => 9900,
'is_active' => true,
]
);
}
}