TinyAuth\Auth\AuthUserTrait::id PHP 메소드

id() 공개 메소드

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