Upgrade Steps
Before upgrading, first be sure you are familiar with Filament’s upgrade guide and know what changes will be needed along the way.-
Update the dependency
Before running Filament’s upgrade script, you’ll want to update your
composer.jsonfile:Then proceed with running Filament’s upgrade script. -
Integrate Filter Set’s Tailwind and css files
Follow Filament’s instructions to upgrade your custom theme and add Advanced Tables’ css to your theme:
-
Publish and run the migrations
Filament v4 has significant changes to the table columns structure to support reorderable columns and your current user views need to be upgraded to support the new structure. Publish and run the migration to update your user views to support this new structure.
IMPORTANT: Backup your user views database table called
filament_filter_setBEFORE proceeding. -
Compile
Next, compile your theme:
and run the Filament upgrade command:
Important Changes
Listed below are changes that have occurred in v4 that may require attention by the developer.Advanced Indicators
Advanced Indicators has been renamed to Quick Filters. If you are using this feature from v3, you will need to update your plugin config fromadvancedIndicatorsEnabled() to quickFiltersEnabled().
Default View
In v3, the default view was an html button that was added to the front of the favorites bar. In v4 this has been replaced with a default Preset View. This allows the default view to appear in the View Manager and, if enabled, allows the user to select a different default view. If you have a Preset View with the keydefault and also want to display the internal default view, then you will need to rename your default key to something different as your preset view will override the internal default view.
If, per previous recommendations for Managed Default Views, you had disabled the default view and created a Preset View with the key default, this is no longer needed. You can re-enable default views, and remove the default Preset View you created. You can customize the default view using the existing internal methods
Reorderable Columns
To support the broader community, I’ve ported Advanced Table’s reorderable columns feature to Filament! You can enable reorderable columns by adding->reorderableColumns() to your table: