This commit is contained in:
Mekan1206
2026-02-13 23:01:07 +05:00
parent d728a3af83
commit 34ad7c43e9
11 changed files with 30 additions and 36 deletions

View File

@@ -5,8 +5,8 @@ namespace App\Repositories\Ecommerce\Order;
use App\Events\Ecommerce\Product\Order\OrderCreated;
use App\Models\Ecommerce\Product\Order\Order;
use App\Models\Ecommerce\Product\Order\Shipping\OrderShipping;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\DB;
class OrderRepository
{

View File

@@ -3,7 +3,6 @@
namespace App\Repositories\Ecommerce\Product\Category;
use App\Models\Ecommerce\Product\Category\Category;
use App\Repositories\System\Cache\CacheRepository;
use Illuminate\Http\Request;
class CategoryRepository
@@ -126,14 +125,11 @@ class CategoryRepository
*/
public static function namesWithTaxes(): array
{
return CacheRepository::make(
name: 'cs-nova-models-categories',
value: fn () => static::maskParentName(
Category::tree()
->where('is_visible', true)
->get(['id', 'slug', 'name', 'tax_percentage', 'parent_id', 'is_visible'])
->toTree()
)
return static::maskParentName(
Category::tree()
->where('is_visible', true)
->get(['id', 'slug', 'name', 'tax_percentage', 'parent_id', 'is_visible'])
->toTree()
);
}