1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 09:17:03 +00:00
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
}