Support the ongoing development of →
Authentication IOC Packages
Last updated 1 year ago.

Hello again, here are some thing that I can suggest to make this work.

Your service provider SHOULD ONLY be loaded/registered when Illuminate\Auth\AuthServiceProvider so should be able to do that.

However there might still be some issue if between "registering" and "booting" there already a code that need to use Auth::..., since you only extend "servicerunner" during "booting". So depends on whether you have any code this might not work.

Alternatively you can make it eager (not deferred) and wrap the extends inside an event so it should solve the above problem.

p/s: The event is fired from

Last updated 1 year ago.

crynobone, I apologize for the late reply but unfortunately neither was able to resolve the issue. The authentication continues to work normally in all environments except artisan, in which it will only work with the 'eloquent' driver set.

Perhaps there is something unique to the artisan bootstrapping process and how it relates to the IoC container vs an issue with the provider load order?

Last updated 1 year ago.

Sign in to participate in this thread!


Your banner here too?

j42 j42 Joined 8 Sep 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.