28 lines
697 B
PHP
28 lines
697 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Packages\Pages;
|
|
|
|
use Filament\Actions\DeleteAction;
|
|
use Filament\Actions;
|
|
use Filament\Resources\Pages\EditRecord;
|
|
use App\Filament\Resources\Packages\PackageResource;
|
|
|
|
class EditPackage extends EditRecord
|
|
{
|
|
protected static string $resource = PackageResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
DeleteAction::make(),
|
|
];
|
|
}
|
|
|
|
public function afterSave(): void
|
|
{
|
|
// Necessary to refresh, in order to load the updated saved relationships and
|
|
// correctly show or hide the "manage provider plans" warning placeholder.
|
|
$this->getRecord()->refresh();
|
|
}
|
|
}
|