Test make command

This commit is contained in:
2021-09-26 13:26:37 +02:00
parent 493c10eb45
commit 4cb4419317

View File

@@ -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;
}
}
}