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; } ImageResize::dispatch($media); } }