TinyAuth\Auth\AuthUserTrait::isMe PHP Метод

isMe() публичный Метод

This check can be used to tell if a record that belongs to some user is the current logged in user
public isMe ( string | integer $userId ) : boolean
$userId string | integer
Результат boolean
    public function isMe($userId)
    {
        $field = $this->config('idColumn');
        return $userId && (string) $userId === (string) $this->user($field);
    }