summaryrefslogtreecommitdiff
path: root/app/Console/Commands/SetWatchingCalender.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Console/Commands/SetWatchingCalender.php')
-rw-r--r--app/Console/Commands/SetWatchingCalender.php41
1 files changed, 41 insertions, 0 deletions
diff --git a/app/Console/Commands/SetWatchingCalender.php b/app/Console/Commands/SetWatchingCalender.php
new file mode 100644
index 0000000..9e4bfa7
--- /dev/null
+++ b/app/Console/Commands/SetWatchingCalender.php
@@ -0,0 +1,41 @@
+<?php
+
+namespace App\Console\Commands;
+
+use Illuminate\Console\Command;
+use App\Libraries\Helper;
+
+class SetWatchingCalender extends Command
+{
+ /**
+ * The name and signature of the console command.
+ *
+ * @var string
+ */
+ protected $signature = 'anime:setWatchingCalender';
+
+ /**
+ * The console command description.
+ *
+ * @var string
+ */
+ protected $description = 'Update anime to set watching status and populate calendar entries';
+
+ /**
+ * Execute the console command.
+ *
+ * @return int
+ */
+ public function handle()
+ {
+ $helper = new Helper();
+ #$helper->createUser( 'll-' );
+ echo "setIsWatchingForAll(): \n";
+ $helper->setIsWatchingForAll();
+ echo "\nsetCalendarForAll(): \n";
+ $helper->setCalendarForAll();
+
+ return Command::SUCCESS;
+
+ }
+}