file)); imagealphablending($im, false); imagesavealpha($im, true); $file_png = imagepng($im, sys_get_temp_dir().'/'.$tmp_file); $path = Storage::disk($disk)->putFile($this->directory, new File(sys_get_temp_dir().'/'.$tmp_file)); $url = Storage::disk($disk)->url($path); } catch (\Exception $e) { nlog($e->getMessage()); } return $url; } }