TinyAuth\Auth\AuthUserTrait::id PHP Method

id() public method

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