mirror of
https://github.com/Cybrarist/Discount-Bandit.git
synced 2026-11-24 19:49:54 +01:00
- fix panel issue where route is wrong - add store images for ebay - add walmart.com and walmart.ca to the stores - add new discount:update command to update the system - add new discount:test-notify to test the notification system. - fix route..page.my-profile not found
28 lines
548 B
PHP
28 lines
548 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use App\Models\Currency;
|
|
use App\Models\Product;
|
|
use App\Models\Store;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Seed the application's database.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$stores=setup_stores();
|
|
foreach ($stores as $store)
|
|
{
|
|
Store::updateOrCreate(
|
|
['domain'=>$store['domain']],
|
|
$store
|
|
);
|
|
}
|
|
}
|
|
}
|