Support the ongoing development of Laravel.io →
Authentication IOC Packages
Last updated 2 years ago.
0

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 http://laravel.io/bin/V6kOd#48-50 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 http://laravel.io/bin/LNqe0 so it should solve the above problem.

p/s: The event is fired from https://github.com/laravel/framework/blob/4.2/src/Illuminate/Foundation/Application.php#L375

Last updated 2 years ago.
0

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 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

j42 j42 Joined 8 Sep 2014

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.