Media can now be uploaded and an S3 URL is returned

This commit is contained in:
Jonny Barnes 2017-03-10 11:27:28 +00:00
parent 63a8f49b64
commit c66dd66155
3 changed files with 31 additions and 8 deletions

View file

@ -28,6 +28,6 @@ class Media extends Model
*/
public function getUrlAttribute()
{
return config('filesystems.s3.url') . '/' . $this->path;
return config('filesystems.disks.s3.url') . '/' . $this->path;
}
}