Update directorytree/ldaprecord-laravel to v3

This commit is contained in:
2024-01-08 12:28:11 +11:00
parent 8529b1fd18
commit 18f9f1a9b3
5 changed files with 42 additions and 95 deletions

View File

@@ -8,7 +8,7 @@ use LdapRecord\Auth\Guard as GuardBase;
class Guard extends GuardBase
{
public function attempt($username, $password, $stayBound = false)
public function attempt(string $username, string $password, bool $stayBound = false): bool
{
if ($result = parent::attempt($username,$password,$stayBound)) {
/*

View File

@@ -9,13 +9,11 @@ class User extends Model
{
use HasApiTokens;
/**
* The object classes of the LDAP model.
*
* @var array
*/
public static $objectClasses = [
'posixAccount',
/**
* The object classes of the LDAP model.
*/
public static array $objectClasses = [
'posixAccount',
];
/* METHODS */