33 lines
772 B
PHP
33 lines
772 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\MenuResource\Pages;
|
|
|
|
use App\Filament\Resources\MenuResource;
|
|
use Filament\Actions;
|
|
use Filament\Notifications\Notification;
|
|
use Filament\Resources\Pages\EditRecord;
|
|
|
|
class EditMenu extends EditRecord
|
|
{
|
|
protected static string $resource = MenuResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
Actions\DeleteAction::make(),
|
|
];
|
|
}
|
|
protected function getRedirectUrl(): ?string
|
|
{
|
|
return $this->getResource()::getUrl('index');
|
|
}
|
|
|
|
protected function getSavedNotification(): ?Notification
|
|
{
|
|
return Notification::make()
|
|
->success()
|
|
->title('Menu updated')
|
|
->body('Menu updated successfully');
|
|
}
|
|
}
|