1
0
Fork 0
forked from mirror/pixelfed
pixelfed/app/StoryItem.php

20 lines
255 B
PHP
Raw Normal View History

2019-01-12 07:43:53 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
2019-01-12 20:34:10 +00:00
use Storage;
2019-01-12 07:43:53 +00:00
class StoryItem extends Model
{
2019-01-12 07:44:51 +00:00
public function story()
{
return $this->belongsTo(Story::class);
}
2019-01-12 20:34:10 +00:00
public function url()
{
return Storage::url($this->media_path);
}
2019-01-12 07:43:53 +00:00
}