Update StoryItem model

This commit is contained in:
Daniel Supernault 2019-01-12 13:34:10 -07:00
parent 353b8fd856
commit e764b6e8b3
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -3,6 +3,7 @@
namespace App;
use Illuminate\Database\Eloquent\Model;
use Storage;
class StoryItem extends Model
{
@ -10,4 +11,9 @@ class StoryItem extends Model
{
return $this->belongsTo(Story::class);
}
public function url()
{
return Storage::url($this->media_path);
}
}