Files
Discount-Bandit/database/seeders/DatabaseSeeder.php
T
YNWA Fawzy 13e8bda25d - add api services for the plugin implementation
- fix price chart doesn't show labels on hovering
- fixed detach action removes all products in that store
- remove product history if the product is not attached to store anymore.
- fixed problem where prices are multiplied by 100.
- fixed "edit" action breaking Single Product Store View
- fixed shipping price number presentation.
2024-02-04 13:22:07 +04:00

25 lines
438 B
PHP

<?php
namespace Database\Seeders;
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
);
}
}
}