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

Description
- Laravel Version: 5.8.4
- Adldap2-Laravel Version: 6.0
- PHP Version: 7.3.2
- LDAP Type: ActiveDirectory
Description:
Model Binding always returns null. All other functionality works as expected: logging in, data synchronization, etc. Here is my User.php
:
use Adldap\Laravel\Traits\HasLdapUser;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable, HasLdapUser;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'username', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
}
From reading the documentation I should now be able to access the LdapUser model via $user->ldap
, however this always returns null.