1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-27 18:26:50 +00:00
pixelfed/app/StoryItem.php
2019-01-12 13:34:10 -07:00

19 lines
255 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Storage;
class StoryItem extends Model
{
public function story()
{
return $this->belongsTo(Story::class);
}
public function url()
{
return Storage::url($this->media_path);
}
}