From 724b7536a7dfbd2c627b78d30452e16f6e78a17c Mon Sep 17 00:00:00 2001 From: cp6 Date: Mon, 31 Oct 2022 15:58:47 +1100 Subject: [PATCH] Updated resellerHosting() input parameter name Updated resellerHosting() input parameter name to be $reseller_id --- app/Models/Reseller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); }); }