Comments (3)
I'm not exactly sure. Maybe post your Onboarding config from your service provider? Maybe you are accessing something in there?
Maybe try installing https://github.com/barryvdh/laravel-debugbar to learn more about those queries and where they came from if you aren't doing this already.
from onboard.
Loop into this as I just realized I'm experiencing the same issue.
Excerpt of the Onboarding config:
Onboard::addStep('Visit Page')
->link('/app/page')
->cta('Visit Page')
->completeIf(function (User $user) {
return $user->pageViews()->wherePath($path)->count();
});
Obviously, the culprit is the query I'm executing. Any ideas on how to improve this without having to make that query every single time (multiplied by the time that complete()
is called)?
from onboard.
@adddz Maybe cache the result of $user->pageViews()->wherePath($path)->count()
in that closure?
from onboard.
Related Issues (14)
- Unresolvable dependency resolving [Parameter #0 [ <required> $user ]] in class Calebporzio\Onboard\OnboardingManager HOT 12
- Support Laravel 5.7.* HOT 2
- Installation on Laravel Version 5.7.* still fails HOT 1
- Laravel 5.8 support HOT 5
- Class 'App\Providers\Onboard' not found HOT 1
- Possible to have an end-to-end working example that uses calebporzio/onboard? HOT 4
- Middleware Example HOT 1
- Laravel 6.* support
- array_get() deprecated in Laravel 6.x
- Nested Models
- Feature Request: Onboarding Percentage and Current Step HOT 1
- Question: Is it possible to use for multiple models ?
- Unable to redirect back to a step, getting ERR_TOO_MANY_REDIRECTS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onboard.