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 ' . explode('-', explode('.txt', $filename)[0])[1])); $service->save(); return Command::SUCCESS; } }