2.0.0
What's changed
- You can now add onboarding to any model using the trait & interface
- Added dependency injection to the
completeIf
callback - The
completeIf
callback is now cached usingspatie/once
to only run once per request - Added a
percentageCompleted
method
Upgrading from v1 to v2
- Support for PHP 7.4 has been dropped
- Support for Laravel 7 and 8 has been dropped
- The
\Spatie\Onboard\OnboardFacade
has been moved to\Spatie\Onboard\Facades\Onboard
- The
\Spatie\Onboard\GetsOnboarded
trait has been moved to\Spatie\Onboard\Concerns\GetsOnboarded
- You should add the new
\Spatie\Onboard\Concerns\Onboardable
interface to yourUser
model - The
$user
parameter in thecompleteIf
callback has been renamed to$model
and it now supports dependency injection
Full Changelog: 1.0.0...2.0.0