diff options
Diffstat (limited to 'app/Console/Commands/SaveTopAnimeEnhance.php')
| -rw-r--r-- | app/Console/Commands/SaveTopAnimeEnhance.php | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app/Console/Commands/SaveTopAnimeEnhance.php b/app/Console/Commands/SaveTopAnimeEnhance.php new file mode 100644 index 0000000..f46602b --- /dev/null +++ b/app/Console/Commands/SaveTopAnimeEnhance.php @@ -0,0 +1,43 @@ +<?php + +namespace App\Console\Commands; + +use Illuminate\Console\Command; +use App\Libraries\Background; + +class SaveTopAnimeEnhance extends Command +{ + /** + * The name and signature of the console command. + * + * @var string + */ + protected $signature = 'anime:saveTopAnimeEnhance'; + + /** + * The console command description. + * + * @var string + */ + protected $description = 'Save top/popular anime, enhancements and season details'; + + /** + * Execute the console command. + * + * @return int + */ + public function handle() + { + $background = new Background(); + echo "saveTopAnime()\n"; + $background->saveTopAnime(); + echo "saveTopAnimeByPopularity()\n"; + $background->saveTopAnimeByPopularity(); + echo"saveEnhancementForAll()\n"; + $background->saveEnhancementForAll(); + echo "addSeasonToAllAnime()\n"; + $background->addSeasonToAllAnime(); + + return Command::SUCCESS; + } +} |
