Skip to content

Commit

Permalink
return https url for cloudinary storage images
Browse files Browse the repository at this point in the history
  • Loading branch information
fredneutron committed Jan 5, 2020
1 parent b4cabf2 commit ec94d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Projects.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function setImageAttribute($value)
Cloudder::upload($value,null, ['folder' => $destination_path, 'public_id' => $public_id]);

// get image url from cloudinary
$image_url = Cloudder::show(Cloudder::getPublicId(), ['width'=> 1600, 'height' => 1200, 'crop'=> 'fit', 'format' => 'jpg']);
$image_url = Cloudder::secureShow(Cloudder::getPublicId(), ['width'=> 1600, 'height' => 1200, 'crop'=> 'fit', 'format' => 'jpg']);

// Save the path to the database
$this->attributes[$attribute_name] = $image_url;
Expand Down

0 comments on commit ec94d4d

Please sign in to comment.