update
This commit is contained in:
parent
61dac972d4
commit
d2efad470e
2 changed files with 15 additions and 0 deletions
|
@ -82,6 +82,10 @@ class PhyreServerResource extends Resource
|
|||
->action(function ($record) {
|
||||
$record->healthCheck();
|
||||
}),
|
||||
Tables\Actions\Action::make('Sync Resources')
|
||||
->action(function ($record) {
|
||||
$record->syncResources();
|
||||
}),
|
||||
Tables\Actions\EditAction::make(),
|
||||
])
|
||||
->bulkActions([
|
||||
|
|
|
@ -29,6 +29,17 @@ class PhyreServer extends Model
|
|||
|
||||
}
|
||||
|
||||
public function syncResources()
|
||||
{
|
||||
// Sync Hosting Plans
|
||||
$getHostingPlans = HostingPlan::all();
|
||||
if ($getHostingPlans->count() > 0) {
|
||||
foreach ($getHostingPlans as $hostingPlan) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function healthCheck()
|
||||
{
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue