@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | /* Config File Publishing */ |
24 | 24 | $this->publishes([ |
25 | - __DIR__.'/../config/thumbnail.php' => config_path('thumbnail.php'), |
|
25 | + __DIR__ . '/../config/thumbnail.php' => config_path('thumbnail.php'), |
|
26 | 26 | ], 'thumbnail-config'); |
27 | 27 | } |
28 | 28 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | ]); |
32 | 32 | /* --------------------------------------------------------------------------------------------- */ |
33 | 33 | |
34 | - $image = Image::cache(function ($cached_img) use ($image_file, $custom) { |
|
34 | + $image = Image::cache(function($cached_img) use ($image_file, $custom) { |
|
35 | 35 | return $cached_img->make($image_file->getRealPath())->fit($custom['width'] ?? config('thumbnail.img_width', 1000), $custom['height'] ?? config('thumbnail.img_height', 800)); //Parent Image Interventing |
36 | 36 | }, config('thumbnail.image_cached_time', 10), true); |
37 | 37 | $image->save(public_path('storage/' . $this->$fieldname), $custom['quality'] ?? config('thumbnail.image_quality', 80)); // Parent Image Locating Save |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | private function makeImg($image_file, $name, $location, $width, $height, $quality) |
58 | 58 | { |
59 | 59 | $image = $image_file->storeAs($location, $name, 'public'); // Thumbnail Storage Information |
60 | - $img = Image::cache(function ($cached_img) use ($image_file, $width, $height) { |
|
60 | + $img = Image::cache(function($cached_img) use ($image_file, $width, $height) { |
|
61 | 61 | return $cached_img->make($image_file->getRealPath())->fit($width, $height); |
62 | 62 | }, config('thumbnail.image_cached_time', 10), true); //Storing Thumbnail |
63 | 63 | $img->save(public_path('storage/' . $image), $quality); //Storing Thumbnail |