/home/techb158/immovalet.com/platform/plugins/ecommerce/helpers
Edit: /home/techb158/immovalet.com/platform/plugins/ecommerce/helpers/brands.php (1458B)
advancedGet([
'condition' => [
'is_featured' => 1,
'status' => BaseStatusEnum::PUBLISHED,
],
'order_by' => [
'order' => 'ASC',
'created_at' => 'DESC',
],
'with' => $with,
'withCount' => $withCount,
'take' => $limit,
]);
}
}
if (!function_exists('get_all_brands')) {
/**
* @param array $conditions
* @param array $with
* @param array $withCount
* @return Collection
*/
function get_all_brands(array $conditions = [], array $with = ['slugable'], array $withCount = [])
{
return app(BrandInterface::class)->advancedGet([
'condition' => $conditions,
'order_by' => [
'order' => 'ASC',
'created_at' => 'DESC',
],
'with' => $with,
'withCount' => $withCount,
]);
}
}