Update ManageHostingSubscriptionFileManager.php

This commit is contained in:
Bozhidar 2024-05-13 20:50:28 +03:00
parent 08e0983e66
commit d7ce82f90a

View file

@ -68,8 +68,10 @@ class ManageHostingSubscriptionFileManager extends ViewRecord implements HasTabl
public function table(Table $table): Table
{
$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();
$findDomain = Domain::select(['home_root', 'hosting_subscription_id', 'is_main'])
->where('hosting_subscription_id', $this->record->id)
->where('is_main',1)->first();
$this->disk = $findDomain->home_root;
$storage = Storage::build([