argument('filename'); if (!Storage::disk('local')->exists($filename)) { $this->error('Could not load file at: ' . Storage::disk('local')->path($filename)); return Command::FAILURE; } $raw_data = Storage::disk('local')->get($filename); $service = new Service(new SixnationsrugbyAdapter($raw_data, 'Six Nations')); $service->save(); return Command::SUCCESS; } }