Update DomainResource.php

This commit is contained in:
Bozhidar 2024-04-27 01:34:40 +03:00
parent ac2de6c2f3
commit 186b014134

View file

@ -34,7 +34,7 @@ class DomainResource extends Resource
{ {
$hostingSubscriptions = []; $hostingSubscriptions = [];
$getHostingSubscriptions = \App\Models\HostingSubscription::all(); $getHostingSubscriptions = \App\Models\HostingSubscription::all();
if (!$getHostingSubscriptions) { if ($getHostingSubscriptions) {
foreach ($getHostingSubscriptions as $hostingSubscription) { foreach ($getHostingSubscriptions as $hostingSubscription) {
$hostingSubscriptions[$hostingSubscription->id] = $hostingSubscription->domain . ' - ' . $hostingSubscription->customer->name; $hostingSubscriptions[$hostingSubscription->id] = $hostingSubscription->domain . ' - ' . $hostingSubscription->customer->name;
} }