Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | * |
||
36 | * @param ImageManager $imageManager |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function handle(ImageManager $imageManager) |
||
41 | { |
||
42 | if ($this->article->image()->exists()) { |
||
43 | $ogImage = storage_path('app/public/news/original/').$this->article->image->name; |
||
44 | $thumb100 = storage_path('app/public/news/100-100/').$this->article->image->name; |
||
45 | |||
46 | $imageManager->make($ogImage)->fit(100, 100, function ($constraint) { |
||
47 | $constraint->upsize(); |
||
53 |