Reset action
CommunityAn action to reset the form state.
filament/
namespace. Review the source and install at your own risk. Found
malware or an unresolved security issue the author won't
address?
Report it
.
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
Blueprint
Filament Blueprint is a premium Laravel Boost extension that helps AI agents produce accurate, detailed implementation plans and security reports for Filament apps.
Filament
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