public function retrieveById($identifier): Model|Builder|Authenticatable|null
{
$identifier = Ulid::fromString($identifier)->toBinary();
$model = $this->createModel();
return $this->newModelQuery($model)
->where($model->getAuthIdentifierName(), $identifier)
->first();
}
public function retrieveById($identifier): Model|Builder|Authenticatable|null
{
$identifier = Ulid::fromString($identifier)->toBinary();
$model = $this->createModel();
return $this->newModelQuery($model)
->where($model->getAuthIdentifierName(), $identifier)
->first();
}