⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.13
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ursites
/
public_html
/
public
/
website
/
app
/
CPU
/
View File Name :
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, $request=null) { $user = Helpers::get_customer($request); $products = Product::active() ->withCount(['wish_list' => function($query) use($user){ $query->where('customer_id', $user != 'offline' ? $user->id : '0'); }]) ->where(['brand_id' => $brand_id]) ->get(); return Helpers::product_data_formatting($products, true); } public static function get_active_brands(){ return Brand::active()->withCount('brandProducts')->latest()->get(); } }