mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-24 16:40:27 +00:00
Update ManageHostingSubscriptionFileManager.php
This commit is contained in:
parent
08e0983e66
commit
d7ce82f90a
1 changed files with 4 additions and 2 deletions
|
@ -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([
|
||||
|
|
Loading…
Reference in a new issue