Download the PHP package howdu/filament-record-switcher without Composer
On this page you can find all versions of the php package howdu/filament-record-switcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download howdu/filament-record-switcher
More information about howdu/filament-record-switcher
Files in howdu/filament-record-switcher
Package filament-record-switcher
Short Description Resource level navigation with search
License MIT
Homepage https://github.com/howdu/filament-record-switcher
Informations about the package filament-record-switcher
Resource title navigation dropdown with search for Filament
Subtly convert the page title into a dropdown navigation that's displayed on click.
It works similar to Filament's global search but only shows results for the current resource.
Installation
You can install the package via composer:
Optionally, you can publish the views using
Usage
-
Register plugin inside your PanelProvider(s). E.g
app/Filament/Providers/AdminPanelProvider.php
- Add the
HasRecordSwitcher
trait to each of your edit record Page. E.gapp/Filament/Resources/Category/Pages/EditCategory.php
Note: this trail will overwrite the getHeading()
method if you've overwritten it in your Page you need to
overwrite getRecordTitle()
instead.
If you want to add custom logic to the afterSave()
method, you can do so by using the recordSwitcherAfterSave()
method from the trait.
`
-
Check your Resource class e.g CategoryResource has the record title attribute set which's used as the label in the select dropdown.
- Finally publish plugin assets.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Ben J
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-record-switcher with dependencies
filament/filament Version ^3.0
filament/forms Version ^3.0
filament/tables Version ^3.0
spatie/laravel-package-tools Version ^1.15.0