diff --git a/app/Models/Reseller.php b/app/Models/Reseller.php index afe8f79..fb5c6c6 100644 --- a/app/Models/Reseller.php +++ b/app/Models/Reseller.php @@ -45,10 +45,10 @@ class Reseller extends Model }); } - public static function resellerHosting(string $shared_id) + public static function resellerHosting(string $reseller_id) {//Single reseller hosting and relationships (no using joins) - return Cache::remember("reseller_hosting.$shared_id", now()->addMonth(1), function () use ($shared_id) { - return Reseller::where('id', $shared_id) + return Cache::remember("reseller_hosting.$reseller_id", now()->addMonth(1), function () use ($reseller_id) { + return Reseller::where('id', $reseller_id) ->with(['location', 'provider', 'price', 'ips', 'labels'])->first(); }); }