| 1 | <?php |
||
| 12 | { |
||
| 13 | use InteractsWithQueue, SerializesModels; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var Collection |
||
| 17 | */ |
||
| 18 | private $paths; |
||
| 19 | |||
| 20 | public function __construct(Collection $paths) |
||
| 21 | { |
||
| 22 | $this->paths = $paths; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function handle() |
||
| 26 | { |
||
| 27 | $imagy = app('imagy'); |
||
| 28 | |||
| 29 | foreach ($this->paths as $path) { |
||
| 30 | app('log')->info('Generating thumbnails for path: ' . $path); |
||
| 31 | $imagy->createAll($path); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | } |
||
| 35 |