EditCustomer.php
TLDR
This file defines the EditCustomer
class, a subclass of EditRecord
. It is responsible for providing the actions that can be performed on a customer record.
Classes
EditCustomer
This class is a subclass of EditRecord
and represents the edit page for a customer record. It provides the following actions:
-
DeleteAction
: An action to delete a customer record. -
RestoreAction
: An action to restore a previously deleted customer record. -
ForceDeleteAction
: An action to permanently delete a customer record that has already been marked as deleted.
<?php
namespace App\Filament\Resources\Shop\CustomerResource\Pages;
use App\Filament\Resources\Shop\CustomerResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class EditCustomer extends EditRecord
{
protected static string $resource = CustomerResource::class;
protected function getActions(): array
{
return [
Actions\DeleteAction::make(),
Actions\RestoreAction::make(),
Actions\ForceDeleteAction::make(),
];
}
}