| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace App\Console\Commands;
- use App\Services\ImportService;
- use Exception;
- use Illuminate\Console\Command;
- use Illuminate\Support\Facades\Storage;
- use PhpOffice\PhpSpreadsheet\IOFactory;
- class ImportMaf extends Command
- {
- /**
- * The name and signature of the console command.
- *
- * @var string
- */
- protected $signature = 'app:import-maf {path} {year}';
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = 'Импорт каталога МАФ';
- /**
- * Execute the console command.
- * @throws Exception
- */
- public function handle(): void
- {
- // run service command
- (new ImportService)->handle($this->argument('path'), $this->argument('year'));
- }
- }
|