Wilbur Powery
Wilbur Powery
+1 on that. Maybe let us use a global configuration file.
Hey @mpjraaij what version of Laravel are you using?
When you call `Auth::user()->onboarding()` that function does the following: ```php public function onboarding() { return App::make(OnboardingManager::class, [$this]); } ``` It's sends through the user instance to the Manager class.
I'll test this out locally later today, maybe the `make` command has changed a bit in v5.6. I'll take a closer look for you.
Just out of curiosity, you are installing the dev-master version of the package right? Caleb hasn't made a release with the changes to support Laravel 5.6.
So, a few things about this: We can't just typehint the user model on the Manager class bacause the container will just fetch a new instance of the class. Since...
Yeah. This solves your issue right? You might want to change it like this: ```php return \App::makeWith(OnboardingManager::class, ['user' => $this]); ``` Just to make it more clear that your passing...
Great. Glad I could help man. Hopefully Caleb sees this issue soon and releases a fix.
If I'm not mistaking, No it won't work. Laravel 5.4 does not have the preset command. You would have to install and configure it manually.
Install this package with npm or Yarn, import it and you should be good to go. It worked out of the box for me. https://github.com/livewire/vue