info('TRYING TO SYNC YOUR MOVIES TO ' . strtoupper($scoutDriver)); $this->call('scout:flush', ['model' => 'App\\Item']); $this->call('scout:import', ['model' => 'App\\Item']); $this->info('SYNCHRONIZATION COMPLETED'); } catch(\Exception $e) { $this->error('Can not connect to ' . $scoutDriver . '. Error: ' . $e->getMessage()); $this->error('Make sure your ' . $scoutDriver . ' credentials in .env are correct'); return; } } }