The default User model class uses the Authorizable trait to provide the can and cannot methods for interacting with policy classes (see https://laravel.com/docs/8.x/authorization#via-the-user-model ). Adding this trait to the LdapUser class will allow us to to the same with ldap users.
Detailed description
The default User model class uses the
Authorizable
trait to provide thecan
andcannot
methods for interacting with policy classes (see https://laravel.com/docs/8.x/authorization#via-the-user-model ). Adding this trait to theLdapUser
class will allow us to to the same with ldap users.