1
0
Fork 0
pixelfed/app/Story.php

31 lines
435 B
PHP
Raw Normal View History

2018-11-04 03:45:44 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Story extends Model
{
2019-01-12 19:38:09 +00:00
protected $visible = ['id'];
public function profile()
{
return $this->belongsTo(Profile::class);
}
2019-01-12 07:42:26 +00:00
public function items()
{
return $this->hasMany(StoryItem::class);
}
public function reactions()
{
return $this->hasMany(StoryReaction::class);
}
public function views()
{
return $this->hasMany(StoryView::class);
}
2018-11-04 03:45:44 +00:00
}