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:
@@ -26,6 +26,7 @@ class SellersTableSeeder extends Seeder
|
||||
'email' => $data->email,
|
||||
'phone_number' => Str::after($data->phone, '993'),
|
||||
'password' => Hash::make('12345678'),
|
||||
'options' => sprintf('{"old_customer_id":"%s"}', $data->id),
|
||||
]);
|
||||
|
||||
$user->assignRole('vendor');
|
||||
|
||||
Reference in New Issue
Block a user