protected function optimizeApplication(): void
    {
        $this->info('Optimizing application for Orchestra Platform');

        $this->call('config:clear');
        $this->call('route:clear');

        if ($this->laravel->environment('production') && ! $this->option('no-cache')) {
            $this->call('config:cache');
            $this->call('route:cache');
        }
    }