ok
Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/a1tex.in/app/CPU/ |
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/a1tex.in/app/CPU/brand-manager.php |
<?php namespace App\CPU; use App\Model\Brand; use App\Model\Product; class BrandManager { public static function get_brands() { return Brand::withCount('brandProducts')->latest()->get(); } public static function get_products($brand_id) { return Helpers::product_data_formatting(Product::active()->where(['brand_id' => $brand_id])->get(), true); } public static function get_active_brands(){ return Brand::active()->withCount('brandProducts')->latest()->get(); } }