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:
Mekan1206
2026-02-08 23:12:40 +05:00
parent d83bc03258
commit 683fa5e0d9
6 changed files with 47 additions and 36 deletions

View File

@@ -124,7 +124,7 @@ class CategoryRepository
/**
* Names with taxes (usefull for nova)
*/
public static function namesWithTaxes(): array
public static function namesWithTaxes(): mixed
{
return CacheRepository::make(
time: 5,