Ldaprecord ActiveDirectory User does not have method can(..) using Gates #599
-
Ldaprecord works, and I have middleware routes with gates working, using Laravel 10. I now need to access authenticated users can method, but the method does not exist, because I have created my own User model that extends the ActiveDirectory User:
This enables me to now check in the Controller:
Is there a reason Authorizable is not part of LdapRecord user models? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi there @wewhite, The core LdapRecord package is usable outside of the Laravel framework, so it is not possible to use this trait on its included models. |
Beta Was this translation helpful? Give feedback.
Hi there @wewhite,
The core LdapRecord package is usable outside of the Laravel framework, so it is not possible to use this trait on its included models.