Download the PHP package hrdrv/laravel-onboard without Composer
On this page you can find all versions of the php package hrdrv/laravel-onboard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hrdrv/laravel-onboard
More information about hrdrv/laravel-onboard
Files in hrdrv/laravel-onboard
Package laravel-onboard
Short Description Track onboarding steps for users when they get setup in your app.
License MIT
Informations about the package laravel-onboard
Laravel Onboard
A Laravel package to help track user onboarding steps.
Based on calebporzio/onboard.
Licence
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
You can buy trees here offset.earth/treeware
Read more about Treeware at treeware.earth
Installation:
-
Install the package via composer
- Add the
WF\Onboard\GetsOnboarded
trait to your app's User model
Example Configuration:
Configure your steps in your App\Providers\AppServiceProvider.php
Usage:
Now you can access these steps along with their state wherever you like. Here is an example blade template:
Check out all the available features below:
Definining custom attributes and accessing them:
Example middleware
If you want to ensure that your user is redirected to the next
unfinished onboarding step, whenever they access your web application,
you can use the following middleware as a starting point:
Quick tip: Don't add this middleware to routes that update the state of the onboarding steps, your users will not be able to progress because they will be redirected back to the onboarding step.