Update StoryItem model

pull/793/head
Daniel Supernault 6 years ago
parent 353b8fd856
commit e764b6e8b3
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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);
}
}

Loading…
Cancel
Save