Update ManageHostingSubscriptionFileManager.php

This commit is contained in:
Bozhidar 2024-05-13 20:48:20 +03:00
parent 7596e2e56c
commit 33b2b07e8d

View file

@ -68,7 +68,7 @@ class ManageHostingSubscriptionFileManager extends ViewRecord implements HasTabl
public function table(Table $table): Table
{
$hostingSubscription = HostingSubscription::select(['id'])->where('id', 16)->first();
$hostingSubscription = HostingSubscription::select(['id'])->first();
$findDomain = Domain::select(['home_root', 'hosting_subscription_id', 'is_main'])->where('hosting_subscription_id', $hostingSubscription->id)->where('is_main',1)->first();
$this->disk = $findDomain->home_root;