protected function redirectUserPath(string $namespace, string $path, ?string $redirect = null): string
    {
        if (! empty($redirect)) {
            $path = $redirect;
        }

        $property = \sprintf('redirect%sPath', Str::ucfirst($namespace));

        return \property_exists($this, $property) ? $this->{$property} : $path;
    }