From 4cb4419317ebebfc4fd17d4afd6f756c6869b5b9 Mon Sep 17 00:00:00 2001 From: Jaro Date: Sun, 26 Sep 2021 13:26:37 +0200 Subject: [PATCH] Test make command --- app/Console/Commands/thumbnail.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/thumbnail.php b/app/Console/Commands/thumbnail.php index a2c0da3..7550853 100644 --- a/app/Console/Commands/thumbnail.php +++ b/app/Console/Commands/thumbnail.php @@ -3,6 +3,7 @@ namespace App\Console\Commands; use Illuminate\Console\Command; +use Illuminate\Support\Facades\Storage; class Thumbnail extends Command { @@ -37,6 +38,15 @@ class Thumbnail extends Command */ public function handle() { - + $dir = public_path().'/'.config('app.image.dir').'/backup'; + $thumb_dir = config('app.image.thumb_dir'); + $w = config('app.image.thumb_width'); + $h = config('app.image.thumb_height'); + + $files = Storage::allFiles(public_path()."/".$dir); + + foreach ($files as $file) { + echo $file; + } } }