tag
3 years ago
215
3
Laravel

5.2 Upgrade problem, class Illuminate\Auth\Guard does not exist

Posted 3 years ago by tag

I'm using the Guard class directly in a custom member loader that allows for integration with a legacy codebase, and after the 5.2 upgrade, that class is no longer found. I see no mention of what it was changed to, or how it was changed, in the upgrade guide.

EDIT: after doing some digging, it's now SessionGuard, but it is no longer automatically injectable because of the $name parameter.

https://github.com/laravel/framework/blob/5.2/src/Illuminate/Auth/SessionGuard.php#L95

But, this is inconsistent with what its API docs say the signature is:

http://laravel.com/api/5.2/Illuminate/Auth/Guard.html

Please sign in or create an account to participate in this conversation.