Getting started
Upgrade guide
Upgrading from V2 to V3
Notifications Pro V3 adds support for Filament V4 and V5. If you want to upgrade from V2, take the following steps:
- Upgrade your application to Filament V4 using the Filament upgrade guide.
- Require
ralphjsmit/laravel-filament-notifications^3.0instead of a 2.x version. - Filament V4 uses a single
Filament\Actions\Actionclass everywhere. Update the actions in yourtoFilamentNotification()methods to importFilament\Actions\Actioninstead ofFilament\Tables\Actions\ActionorFilament\Notifications\Actions\Action. - If you have extended the
Notificationspage or theNotificationResource, update your overrides to the Filament V4 APIs. For example, the$viewproperty is no longer static,form(Form $form)has becomeform(Schema $schema), and the table methods->actions()and->bulkActions()have become->recordActions()and->toolbarActions().
Upgrading from V1 to V2
The Filament Notifications Pro plugin has a V2 version that already has support for Filament V3.
If you want to upgrade to Notifications Pro V2, and therefore Filament V3 support, take the following steps:
- Require
ralphjsmit/laravel-filament-notifications'^2.0'instead of a 1.x version. - For each of the panels that you want to use the Notifications Pro plugin in, please register the plugin like follows:
app/Providers/Filament/YourPanelProvider.php
use RalphJSmit\Filament\Notifications\FilamentNotifications;
$panel
->plugin(FilamentNotifications::make())
- If you have extended pages like the
Notificationspage, please check your custom overrides with the new code. TheNotificationspage has dropped several methods likegetTableFilters(), which has been replaced by a static functiontable(Table $table): Tableand$table->filters(). - Re-compile your assets using
npm run buildornpm run prodif you are using a custom theme.