BookStack\User::hasSocialAccount PHP Метод

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

Check if the user has a social account, If a driver is passed it checks for that single account type.
public hasSocialAccount ( boolean | string $socialDriver = false ) : boolean
$socialDriver boolean | string
Результат boolean
    public function hasSocialAccount($socialDriver = false)
    {
        if ($socialDriver === false) {
            return $this->socialAccounts()->count() > 0;
        }
        return $this->socialAccounts()->where('driver', '=', $socialDriver)->exists();
    }