calebporzio / onboard Goto Github PK
View Code? Open in Web Editor NEWA Laravel package to help track user onboarding steps.
A Laravel package to help track user onboarding steps.
Hi there,
I need to show Onboarding Percentage and Current Step to the user, any work done on that front, maybe on a Fork or Branch I could look at? Thanks
Hey @calebporzio, I was wondering is it possible to use this package other than the User model to have different sets of onboarding steps?
I still cannot install this package using composer and Laravel 5.7
This is my error stacktrace:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install calebporzio/onboard v1.1.1
- Conclusion: remove laravel/framework v5.7.20
- Installation request for calebporzio/onboard ^1.1 -> satisfiable by calebporzio/onboard[v1.1, v1.1.1].
- Conclusion: don't install laravel/framework v5.7.20
- calebporzio/onboard v1.1 requires laravel/framework 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.* -> satisfiable by laravel/framework[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev].
- laravel/framework 5.2.x-dev conflicts with laravel/framework[v5.7.20].
- laravel/framework 5.3.x-dev conflicts with laravel/framework[v5.7.20].
- laravel/framework 5.4.x-dev conflicts with laravel/framework[v5.7.20].
- laravel/framework 5.5.x-dev conflicts with laravel/framework[v5.7.20].
- Can only install one of: laravel/framework[5.0.x-dev, v5.7.20].
- Can only install one of: laravel/framework[5.1.x-dev, v5.7.20].
- Installation request for laravel/framework (locked at v5.7.20, required as 5.7.*) -> satisfiable by laravel/framework[v5.7.20].
Installation failed, reverting ./composer.json to its original content.
The error occurs when installing the package trough composer as mentioned on the install page
Are there any plans to support Laravel 5.8? I'm wondering if it requires anything besides adding it to the composer.json file or if the package actually needs to be updated?
@calebporzio thank you for this package and the work you're doing for Laravel. I've been looking for a good package to add an onboarding flow to my app, and this is the only one out there.
Would it be possible for you to put out an end-to-end (simple) working example? It would help me and others that are stuck with the instructions.
As the title suggests, the installation fails for laravel 5.7.*. Migration of 5.6 to 5.7 has only a few changes required. It may not even require any change for this package though I am not sure.
My setup looks like following.
AppServiceProvider.php
OnboardFacade::addStep('Connect Slack App')
->link('/connect-slack')
->cta('Complete')
->completeIf(function (User $user) {
return $user->hasTaskCreator('slack');
});
Added middleware in my krenel.php
under web
...
\App\Http\Middleware\RedirectToUnfinishedOnboardingStep::class,
...
When logged in I am redirected to proper link /connect-slack.
But it's a 404 because there is no route as /connect-slack. When I add a route in my web.php
and try to visit the page I get too many redirects.
This is how I connect view to the route.
Route::get('/connect-slack', function () {
return view('onboarding.slack-connect');
})->name('connect-slack');
How can I add the view to the route?
Please keep the package updated with Laravel 6.* support.
Got Fatal Error when adding
Onboard::addStep('Complete Profile')
->link('/profile')
->cta('Complete')
->completeIf(function (User $user) {
return $user->profile->isComplete();
});
in App\Providers\AppServiceProvider.php
Implemented per instructions, and it works great, however I'm getting a huge jump in the number of queries - specifically the number of duplicated queries.
For example, on my dashboard I had 7 queries, 2 duplicated. After adding 8 Onboarding steps I have 28queries, 23 duplicated.
Any idea why the high number of duplicate queries?
Hello,
I love the package, but I can't seem to get it to work with nested models. Here's why:
Any idea of how to accomplish that?
Thank you,
Tal Valante
Hi,
I've tried to test this package in Laravel 6.0.x and it isn't working, because array_get() is no longer available in Laravel helpers of version 6.x.
Call to undefined function Calebporzio\Onboard\array_get()
I hope that helps!
I don't know where i should register the middleware inside kernel.php. Should i register it under route middleware or middlewareGroups web?
Hi,
I'm getting an unresolvable dependencing resolving as somehow it's not passing on the $user class properly. I'm using spark and this is my User model:
<?php
namespace App;
use Laravel\Spark\CanJoinTeams;
use Laravel\Passport\HasApiTokens;
use Laravel\Spark\User as SparkUser;
use Calebporzio\Onboard\GetsOnboarded;
class User extends SparkUser
{
use CanJoinTeams, HasApiTokens, GetsOnboarded;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.