summaryrefslogtreecommitdiff
path: root/app/Console/Commands/CheckImage.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Console/Commands/CheckImage.php')
-rw-r--r--app/Console/Commands/CheckImage.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/Console/Commands/CheckImage.php b/app/Console/Commands/CheckImage.php
new file mode 100644
index 0000000..fcd6d4a
--- /dev/null
+++ b/app/Console/Commands/CheckImage.php
@@ -0,0 +1,36 @@
+<?php
+
+namespace App\Console\Commands;
+
+use Illuminate\Console\Command;
+use App\Libraries\Background;
+
+class CheckImage extends Command
+{
+ /**
+ * The name and signature of the console command.
+ *
+ * @var string
+ */
+ protected $signature = 'anime:checkImage';
+
+ /**
+ * The console command description.
+ *
+ * @var string
+ */
+ protected $description = 'Fix broken image links';
+
+ /**
+ * Execute the console command.
+ *
+ * @return int
+ */
+ public function handle()
+ {
+ $background = new Background();
+ echo "checkImage()\n";
+ $background->checkImage();
+ return Command::SUCCESS;
+ }
+}