forked from mirror/pixelfed
Update Story Model
This commit is contained in:
parent
fe6f486914
commit
d7d1303a63
1 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,13 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Story extends Model
|
||||
{
|
||||
protected $visible = ['id'];
|
||||
|
||||
public function profile()
|
||||
{
|
||||
return $this->belongsTo(Profile::class);
|
||||
}
|
||||
|
||||
public function items()
|
||||
{
|
||||
return $this->hasMany(StoryItem::class);
|
||||
|
|
Loading…
Reference in a new issue