Test make command
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user