Skip to content

Commit

Permalink
Add environment variable to Cloudinary URL #1
Browse files Browse the repository at this point in the history
  • Loading branch information
drewroberts committed Jul 28, 2020
1 parent 4b60f13 commit 397786e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected static function boot()

public function getUrlAttribute()
{
return 'https://res.cloudinary.com/'.env('').'/'.$this->filename;
return 'https://res.cloudinary.com/'.env('CLOUDINARY_CLOUD_NAME').'/'.$this->filename;
}

public function creator()
Expand Down

0 comments on commit 397786e

Please sign in to comment.