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); $tournament_name = 'Six Nations ' . explode('-', explode('.txt', $filename)[0])[1]; $service = new Service(new SixnationsrugbyAdapter($raw_data, $tournament_name)); $service->save(); return Command::SUCCESS; } }