The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

Beautiful onboarding experiences for Filament Admin

Published on by

Beautiful onboarding experiences for Filament Admin image

The Onboarding Manager Pro is a premium package that allows you to create beautiful onboarding experiences for Filament Admin in minutes.

Configurable from a simple service provider, it allows you to:

  • Prevent users from accessing Filament without first completing required parts of your onboarding.
  • Add optional onboarding steps with the beautiful dashboard widget.
  • Guide your users through one or multiple wizards.
  • Redirect users to links (e.g. for an OAuth-process) or guide them through a multi-step wizard.
  • Beautiful design & integration with Filament Admin.
  • Advanced widget design with native support for columns and column spans.
  • Support for dark mode. 🌚
  • Can be easily translated with a language file.
  • Redirect to custom route after completing onboard flow.

Creating tracks

Creating onboarding flows is called creating "tracks". Tracks can be easily created from a service provider (for example, an OnboardingServiceProvider):

use Filament\Facades\Filament;
use RalphJSmit\Filament\Onboard\Facades\Onboard;
 
public function boot(): void
{
Filament::serving(function() {
Onboard::addTrack(/** Your steps */)
});
}

In each track, you can add steps that symbolize a step that a user takes in your application. For example, consider an OAuth-flow of a third party app:

Onboard::addTrack([
Onboard::addStep(name: 'Connect Notion', identifier: 'widget::connect-notion')
->description('Sign in with Notion and grant access to your workspace.')
->icon('heroicon-o-check-circle')
->link('Add workspace →', route('callbacks.notion.authorize'))
->completeIf(fn () => auth()->user()->workspaces()->exists())
->columnSpan(1),
// Other steps
// Onboard::addStep(/** */)...
// Onboard::addStep(/** */)...
])->columns(3)

Next, register the RalphJSmit\Filament\Onboard\Widgets\OnboardTrackWidget as a dashboard widget and voilà:

If you want to force users to complete the step before being allowed to access the admin panel, you can mark the track as necessary to complete using the ->completeBeforeAccess():

// Add middleware: RalphJSmit\Filament\Onboard\Http\Middleware\OnboardMiddleware
 
// Add track:
Onboard::addTrack([
Onboard::addStep(name: 'Connect Notion', identifier: 'widget::connect-notion')
->link('Add workspace →', route('callbacks.notion.authorize'))
->completeIf(fn () => auth()->user()->workspaces()->exists()),
//..
])
->completeBeforeAccess()

Complex layouts

If you want to create complex layouts, you can use the ->columns() and ->columnSpan() methods to create beautiful grid layouts.

The individual cards will automatically wrap to the next row if there is no more space.

It also supports changing the ->columnSpan() and nr of ->columns() on different breakpoints, so you can craft a different layout for e.g. mobile v. desktop v. ultra-wide devices.

The onboarding widget will automatically display the completed steps in green, and the uncompleted steps in your primary color:

Onboard::addTrack([
Onboard::addStep('Create list', 'widget::create-list')
->columnSpan(2)
->completeIf(fn () => auth()->user()->lists()->exists()),
Onboard::addStep('Connect', 'widget::connect')
->columnSpan(2)
->completeIf(fn () => auth()->user()->workspaces()->exists()),
Onboard::addStep('Embed form on site', 'widget::embed-form')
->columnSpan(3)
->completeIf(fn () => auth()->user()->copied_embed_form !== null),
Onboard::addStep('Tweak the design', 'widget::tweak-design')
->columnSpan(3)
->completeIf(fn () => auth()->user()->designs->first->created_at->lt(auth()->user()->designs->first->updated_at)),
Onboard::addStep('Send newsletters', 'widget::send-newsletters')
->columnSpan(4)
->completeIf(fn () => auth()->user()->created_at->lt(now()->subWeek(2))),
])->columns(7);

Creating wizards

It is also possible to force your users to go through one or more wizards before they can complete the onboarding flow. For example, you can use this to ensure that all your users have a complete profile (e.g. their address or other profile information) or that they have chosen a subscription plan:

Onboard::addStep('Your title', 'onboard::unique-identifier')
->wizard([
Step::make("Your label")
->statePath('step_1') // It is recommended to keep the form data in a separate array key for each step.
->schema([
TextInput::make('name')
->required(),
Select::make('plan_id')
->label('Choose your trial plan')
->options([
'default' => 'Regular',
'pro' => 'Pro',
'unlimited' => 'Unlimited'
])
->required(),
// More components...
])
// More steps...
])

Conclusion

As you can see, it's really easy to create advanced and premium-looking onboarding flows to your Filament admin application.

You can buy the plugin as a single license with 2 installs and unlimited updates for €49 or an unlimited license for just €99.

Eric L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Filed in:
Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

image
Bacancy

Outsource a dedicated Laravel developer for $3,200/month. With over a decade of experience in Laravel development, we deliver fast, high-quality, and cost-effective solutions at affordable rates.

Visit Bacancy
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $3200/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit

The latest

View all →
The Inertia v3 Beta is Here image

The Inertia v3 Beta is Here

Read article
Polyscope Is an Ai-First Dev Environment for Orchestrating Agents image

Polyscope Is an Ai-First Dev Environment for Orchestrating Agents

Read article
Filament v5.3.0 Released with Deferred Tab Badges and Column Manager Improvements image

Filament v5.3.0 Released with Deferred Tab Badges and Column Manager Improvements

Read article
Ward: A Security Scanner for Laravel image

Ward: A Security Scanner for Laravel

Read article
Kit: An Opinionated API Starter Kit for Laravel image

Kit: An Opinionated API Starter Kit for Laravel

Read article
Livewire v4.2.0 Released with Security Hardening and Laravel 13 Support image

Livewire v4.2.0 Released with Security Hardening and Laravel 13 Support

Read article