src/LaravelJsonApi.php
public static function defaultApi(string $name): self
    {
        if (empty($name)) {
            throw new \InvalidArgumentException('Default API name must not be empty.');
        }

        self::$defaultApi = $name;

        return new self();
    }
public static function defaultApi(string $name): self
    {
        if (empty($name)) {
            throw new \InvalidArgumentException('Default API name must not be empty.');
        }

        self::$defaultApi = $name;

        return new self();
    }
Set the default API name.

@param string $name
@return LaravelJsonApi