info('Token for user '.$user->name); $token = $user->createToken('Personal Access Token')->accessToken; $this->info($token); })->describe('Generates a personal access token for a user'); Artisan::command('htmlparser:import-rulesets', function() { $registry = Registry::query()->where(['type' => RegistryType::RULESET])->first(); $url = "https://faufcc.ru/technical-regulation-in-constuction/formulary-list/"; $service = new RulesetImportService($registry, $url); $service->import(); }); Artisan::command('htmlparser:import-developments', function() { $registry = Registry::query()->where(['type' => RegistryType::DEVELOPMENTS])->first(); $urls = [ "https://www.faufcc.ru/_deyatelnost/_tehnicheskoe_normirovanie/_razrabotka_svodov_pravil/", "https://www.faufcc.ru/_deyatelnost/_tehnicheskoe_normirovanie/_razrabotka_svodov_pravil/?PAGEN_1=2", "https://www.faufcc.ru/_deyatelnost/_tehnicheskoe_normirovanie/_razrabotka_svodov_pravil/?PAGEN_1=3" ]; foreach ($urls as $url) { $service = new DevelopmentsImportService($registry, $url); $service->import(); } }); Artisan::command('dev:import-ntd', function() { Excel::import(new \App\Imports\NtdRegistryImport(), Storage::path('import/registries/ntd.xlsx')); });