pixelfed/app/StoryItem.php

20 wiersze
255 B
PHP
Czysty Zwykły widok Historia

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
}