Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 1a8843b

Browse files
committed
Fixed user model binding in Laravel 5.2
- The `class_uses_recursive` method only accepts objecs in Laravel 5.3 or greater. Laravel 5.2 only has support for strings. - Closes #705
1 parent 31f80df commit 1a8843b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Listeners/BindsLdapUserModel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ protected function isUsingAdldapProvider() : bool
5252
*/
5353
protected function canBind(Authenticatable $user) : bool
5454
{
55-
return array_key_exists(HasLdapUser::class, class_uses_recursive($user));
55+
return array_key_exists(HasLdapUser::class, class_uses_recursive(get_class($user)));
5656
}
5757
}

0 commit comments

Comments
 (0)