media = $media; } /** * Execute the job. * * @return void */ public function handle() { $media = $this->media; $path = storage_path('app/'. $media->media_path); if(!is_file($path)) { return; } try { $img = new Image; $img->resizeImage($media); } catch (Exception $e) { } ImageThumbnail::dispatch($media); } }