src/DiscordServiceProvider.php
public function boot()
    {
        $token = $this->app->make('config')->get('services.discord.token');

        $this->app->when(Discord::class)
            ->needs('$token')
            ->give($token);

        $this->app->when(SetupCommand::class)
            ->needs('$token')
            ->give($token);
    }
public function boot()
    {
        $token = $this->app->make('config')->get('services.discord.token');

        $this->app->when(Discord::class)
            ->needs('$token')
            ->give($token);

        $this->app->when(SetupCommand::class)
            ->needs('$token')
            ->give($token);
    }
Bootstrap the application services.