use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Contracts\Auth\UserProvider;
+use Illuminate\Database\Eloquent\Model;
class ExternalBaseUserProvider implements UserProvider
{
/**
* LdapUserProvider constructor.
- *
- * @param $model
*/
public function __construct(string $model)
{
/**
* Create a new instance of the model.
*
- * @return \Illuminate\Database\Eloquent\Model
+ * @return Model
*/
public function createModel()
{
*
* @param mixed $identifier
*
- * @return \Illuminate\Contracts\Auth\Authenticatable|null
+ * @return Authenticatable|null
*/
public function retrieveById($identifier)
{
* @param mixed $identifier
* @param string $token
*
- * @return \Illuminate\Contracts\Auth\Authenticatable|null
+ * @return Authenticatable|null
*/
public function retrieveByToken($identifier, $token)
{
/**
* Update the "remember me" token for the given user in storage.
*
- * @param \Illuminate\Contracts\Auth\Authenticatable $user
- * @param string $token
+ * @param Authenticatable $user
+ * @param string $token
*
* @return void
*/
*
* @param array $credentials
*
- * @return \Illuminate\Contracts\Auth\Authenticatable|null
+ * @return Authenticatable|null
*/
public function retrieveByCredentials(array $credentials)
{
/**
* Validate a user against the given credentials.
*
- * @param \Illuminate\Contracts\Auth\Authenticatable $user
- * @param array $credentials
+ * @param Authenticatable $user
+ * @param array $credentials
*
* @return bool
*/