Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Reset Action Laravel Package

sakanjo/filament-reset-action

Adds a one-click Reset action to Filament tables and forms, letting users clear filters, search, sorting, and form state without manual cleanup. Easy to install and configure, it keeps admin panels tidy and speeds up everyday workflows in Laravel Filament apps.

View on GitHub
Deep Wiki
Context7

Getting Started

  • Confirm compatibility before installing or upgrading. v3.0.0 is a major release, and the published release notes only link to the GitHub compare view. Check composer.json for Laravel/Filament constraints and review v2.0.0...v3.0.0 for namespace, config, and API changes.
  • Install with composer require sakanjo/filament-reset-action, then run php artisan optimize:clear. If the package publishes config or assets, publish and review them; otherwise rely on Laravel package auto-discovery.
  • Look first at the README usage section, the package service provider, the exported action class, and any publishable config file. In a major release, verify the exact namespace and action registration method before copying older examples.
  • First use case: add a reset action to a Filament form or table toolbar so users can clear/reset filters or unsaved form state without leaving the page.
->headerActions([
    ResetAction::make()
        ->label('Reset')
        ->color('gray'),
])

Implementation Patterns

  • Use the action on Filament resource pages where users commonly need to undo local changes, such as Edit/View pages or table toolbars with active filters.
  • Configure the action’s presentation and safety in the panel/resource layer: label, icon, color, requiresConfirmation(), visible(), and authorization checks.
  • For table usage, pair the action with a clear success notification or after() callback so users know filters/search state was reset.
  • For form usage, verify whether the package resets to default values, last saved state, or empty state. Match the label and confirmation text to the actual behavior.
  • Keep custom reset logic in your own page/resource class or a small service rather than editing vendor files. Use the package action as the UI entry point.
  • In multi-panel applications, register or configure the action per panel as needed. Avoid enabling destructive reset behavior globally unless it is appropriate for every panel.
  • When migrating from v2 to v3, create a branch, upgrade, run the test suite, and search the codebase for old namespaces, config keys, and action constructor signatures.

Gotchas and Tips

  • v3.0.0 is a major version, but the release notes are sparse. Treat it as potentially breaking until you inspect the compare link and verify Filament compatibility, namespaces, config keys, and action APIs.
  • Reset semantics matter. Confirm whether the action resets unsaved changes, persisted data, table filters, or form defaults. A destructive reset without confirmation is a data-loss risk.
  • Guard sensitive forms with policies or authorize()/visible() checks. A reset button can be as dangerous as a delete button if it clears persisted state.
  • Test nested forms, repeaters, and relationship fields separately. Generic reset actions often need custom handling for complex Filament schemas.
  • If the action does not appear, check Filament version constraints, panel provider registration, published config, and package discovery. Run composer show sakanjo/filament-reset-action and composer why-not for conflicts.
  • After upgrades, clear caches with php artisan optimize:clear and verify the service provider is still discovered.
  • Prefer documented extension points such as subclassing the action or overriding its setup/configuration over modifying vendor files.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib