Refactor helper functions and update seeders
- Simplified `tmpostChannel` and `tmpostDefaultInventory` functions by removing caching logic. - Changed return type of `namesWithTaxes` method in `CategoryRepository` to `mixed`. - Enabled `ProductsTableSeeder` and added user association logic for product relations. - Updated `BrandsSeeder` to include the product ID in the slug. - Added `old_customer_id` to `options` in `SellersTableSeeder` for user tracking.
This commit is contained in:
@@ -19,7 +19,7 @@ class BrandsSeeder extends Seeder
|
||||
foreach ($datas as $data) {
|
||||
DB::table($table)->insertOrIgnore([
|
||||
'id' => $data->id,
|
||||
'slug' => Str::slug(json_decode($data->name)->en ?? $data->code),
|
||||
'slug' => Str::slug(json_decode($data->name)->en ?? $data->code). '_' . $data->id,
|
||||
'name' => $data->name,
|
||||
'is_visible' => $data->is_blocked,
|
||||
'sort_order' => $data->priority,
|
||||
|
||||
Reference in New Issue
Block a user