TinyAuth\Auth\AuthUserTrait::id PHP Méthode

id() public méthode

This can be used anywhere to check if a user is logged in.
public id ( ) : mixed
Résultat mixed User id if existent, null otherwise.
    public function id()
    {
        $field = $this->config('idColumn');
        return $this->user($field);
    }