Reset action
An action to reset the form state.
Author:
Salah Kanjo
Documentation
A Filament action to reset the form state.
✨ Help support the maintenance of this package by sponsoring me.

#📦 Install
composer require sakanjo/filament-reset-action
#🦄 Usage
#On the create page
<?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(),
];
}
}
#On the edit page
<?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(),
];
}
}
#💖 Support the development
Do you like this project? Support it by donating
Click the "💖 Sponsor" at the top of this repo.
#©️ Credits
#📄 License
MIT License © 2023-PRESENT Salah Kanjo
The author
A self-taught developer who loves to work with Laravel, Vue, Tailwind CSS and Rust.
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Custom Fields
Eliminate custom field migrations forever. Let your users create and manage form fields directly in Filament admin panels with 20+ built-in field types, validation, and zero database changes.
Relaticle
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese