Album and Artist image URLs are now absolute

This commit is contained in:
An Phan 2016-01-03 16:08:01 +08:00
parent 89c1d2e5da
commit ddc56c28d6
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ class Album extends Model
public function getCoverAttribute($value)
{
return '/public/img/covers/'.($value ?: self::UNKNOWN_COVER);
return url('/public/img/covers/'.($value ?: self::UNKNOWN_COVER));
}
/**

View file

@ -107,6 +107,6 @@ class Artist extends Model
*/
public function getImageAttribute($value)
{
return $value ? '/public/img/artists/'.$value : null;
return $value ? url('/public/img/artists/'.$value) : null;
}
}