A Filament action to reset the form state.
⨠Help support the maintenance of this package by sponsoring me.
composer require sakanjo/filament-reset-action
<?php namespace App\Filament\Admin\Resources\UserResource\Pages; use App\Filament\Admin\Resources\UserResource;use Filament\Resources\Pages\CreateRecord;use SaKanjo\FilamentResetAction\Actions\ResetAction; class CreateUser extends CreateRecord{ protected static string $resource = UserResource::class; protected function getHeaderActions(): array { return [ ResetAction::make(), ]; }}
<?php namespace App\Filament\Admin\Resources\UserResource\Pages; use App\Filament\Admin\Resources\UserResource;use App\Filament\Base\Pages\EditRecord;use SaKanjo\FilamentResetAction\Actions\ResetAction; class EditUser extends EditRecord{ protected static string $resource = UserResource::class; protected function getHeaderActions(): array { return [ ResetAction::make(), ]; }}
Do you like this project? Support it by donating
Click the "đ Sponsor" at the top of this repo.
MIT License Š 2023-PRESENT Salah Kanjo
A self-taught developer who loves to work with Laravel, Vue, Tailwind CSS and Rust.