mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 15:40:25 +00:00
Update ManageHostingSubscriptionBackups.php
This commit is contained in:
parent
b97ff2eb45
commit
15effd1c17
1 changed files with 9 additions and 0 deletions
|
@ -80,6 +80,15 @@ class ManageHostingSubscriptionBackups extends ManageRelatedRecords
|
||||||
public function table(Table $table): Table
|
public function table(Table $table): Table
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$findHostingSubscription = HostingSubscriptionBackup::where('hosting_subscription_id', $this->record->id)
|
||||||
|
->where('status', 'processing')
|
||||||
|
->get();
|
||||||
|
if ($findHostingSubscription->count() > 0) {
|
||||||
|
foreach ($findHostingSubscription as $backup) {
|
||||||
|
$backup->checkBackup();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $table
|
return $table
|
||||||
->recordTitleAttribute('id')
|
->recordTitleAttribute('id')
|
||||||
->columns([
|
->columns([
|
||||||
|
|
Loading…
Reference in a new issue