src/Providers/MastodonServiceProvider.php
public function register()
    {
        $this->app->singleton(Factory::class, function ($app) {
            return new MastodonClient(new Client());
        });

        $this->app->alias(
            MastodonClient::class,
            Factory::class
        );
    }
public function register()
    {
        $this->app->singleton(Factory::class, function ($app) {
            return new MastodonClient(new Client());
        });

        $this->app->alias(
            MastodonClient::class,
            Factory::class
        );
    }
Register the service provider.

@return void