Update ImageOptimizePipeline

pull/991/head
Daniel Supernault 2019-03-08 00:14:16 -07:00
rodzic ff15e0eed1
commit 8e5bdf6368
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
3 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -41,6 +41,9 @@ class ImageResize implements ShouldQueue
public function handle()
{
$media = $this->media;
if(!$media) {
return;
}
$path = storage_path('app/'.$media->media_path);
if (!is_file($path)) {
return;

Wyświetl plik

@ -42,6 +42,9 @@ class ImageThumbnail implements ShouldQueue
public function handle()
{
$media = $this->media;
if(!$media) {
return;
}
$path = storage_path('app/'.$media->media_path);
if (!is_file($path)) {
return;

Wyświetl plik

@ -48,6 +48,9 @@ class ImageUpdate implements ShouldQueue
public function handle()
{
$media = $this->media;
if(!$media) {
return;
}
$path = storage_path('app/'.$media->media_path);
$thumb = storage_path('app/'.$media->thumbnail_path);