diff --git a/packages/Sarga/API/Http/Controllers/Products.php b/packages/Sarga/API/Http/Controllers/Products.php index b6118f47a..9fc9eee15 100644 --- a/packages/Sarga/API/Http/Controllers/Products.php +++ b/packages/Sarga/API/Http/Controllers/Products.php @@ -146,7 +146,8 @@ class Products extends ProductController ->where('channel', $channel) ->where('locale', $locale) ->take(10) - ->query(fn ($query) => $query->select('id','name',DB::raw("'product' as 'type'" ))->orderBy('name')) + ->query(fn ($query) => $query->select('id','name',DB::raw("'product' as type" )) + ->orderBy('name')) ->get();; return [$products,$brands];