Getting started
Upgrade guide
Upgrading from V2 to V3
Onboarding Manager 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-onboard^3.0instead of a 2.x version. - Remove the following line from the
tailwind.config.jsfile of each custom theme:
tailwind.config.js
content: [
// Your other files
'./vendor/ralphjsmit/laravel-filament-onboard/resources/**/*.blade.php',
],
Instead, add the following line to your theme.css file:
resources/css/filament/{your-panel}/theme.css
@source '../../../../vendor/ralphjsmit/laravel-filament-onboard/resources/**/*.blade.php';
- Wizard steps now live in the Filament Schemas package. Replace
Filament\Forms\Components\Wizard\StepwithFilament\Schemas\Components\Wizard\Stepin your->wizard()steps. If you use->modifyWizardUsing(), the closure now receives aFilament\Schemas\Components\Wizard, and actions such as->nextAction()receive aFilament\Actions\Actioninstead of aStaticAction. - If you have extended the
OnboardTrackWidgetor the Livewire components of the package, update your overrides to the Filament V4 APIs. For example, the$viewproperty is no longer static. If you have published the views, publish them again, because the track widget view has changed.
Upgrading from V1 to V2
The Filament Onboarding plugin has a V2 version that already has support for Filament V3.
If you want to upgrade to Onboarding Manager V2, and therefore Filament V3 support, take the following steps:
- Require
ralphjsmit/laravel-filament-onboard^2.0instead of a 1.x version. - For each of the panels that you want to use the Onboard plugin in, please register the plugin like follows:
app/Providers/Filament/YourPanelProvider.php
use RalphJSmit\Filament\Onboard\FilamentOnboard;
$panel
->plugin(FilamentOnboard::make())
- Filament V3 offers plugins the ability to be customized per panel. This means that instead of global config values that apply to all panels, you can now set different values per panel. If you want, review the
config/filament-onboard.phpconfiguration file. Set the values that you want to change using the methods on theFilamentOnboardclass. The methods look very similar to the keys they had in the config. For example, the keyredirect-routehas become a methodFilamentOnboard::make()->redirectRoute(). You can also choose to do nothing. The package will retain compatibility with your current config. Whilst we do recommend to stay up-to-date and migrate your config, it is not a strictly requirement. An example plugin configuration could look like:
app/Providers/Filament/YourPanelProvider.php
$panel
->plugin(
FilamentOnboard::make()
->redirectRoute('some-route-name')
->prefix('welcome')
// ..
)
- Replace all code referring
Onboard::addTrack()andOnboard::make()->addTrack()withRalphJSmit\Filament\Onboard\Track::make(). TheOnboardfacade has been removed. - Replace all code referring
Onboard::addStep()andOnboard::make()->addStep()withRalphJSmit\Filament\Onboard\Step::make(). TheOnboardfacade has been removed. - Previously, all tracks were registered in the
boot()method of a service provider which you could choose. Now, the logic for registering tracks has moved into the panel service providers. That has the benefit that you can now register different tracks per panel. For example, a different onboarding track in your admin panel than the track for your normal users. For upgrading, it means that you will need to copy the code that you previously had asOnboard::addTrack(), and update it to use the$plugin->addTrack()method. You will also need to create the track usingTrack::make():
app/Providers/Filament/YourPanelProvider.php
$panel
->plugin(
FilamentOnboard::make()
->addTrack(fn () => Track::make([
Step::make(/** */),
// Other steps...
])
->completeBeforeAccess(/** */),
// Other methods on the Track...
)
// ..
)
- Please make sure that you are registering the track inside
->addTrack()using a closure:fn () => Track::make(). If you register it without a closure, it will throw an error. - If you have extended components like the
Track,TrackCollection,SteporStepCollection, please check your custom overrides with the new code. The best is to publish your views again.
The V2 is available to all customers who previously purchased a license for V1.