Updated resellerHosting() input parameter name

Updated resellerHosting() input parameter name to be $reseller_id
This commit is contained in:
cp6 2022-10-31 15:58:47 +11:00
parent f7cdaeb342
commit 724b7536a7

View File

@ -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();
});
}