mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 02:24:31 +00:00
20 lines
255 B
PHP
20 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);
|
|
}
|
|
}
|