mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
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
|
class Story extends Model
|
||||||
{
|
{
|
||||||
|
protected $visible = ['id'];
|
||||||
|
|
||||||
|
public function profile()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Profile::class);
|
||||||
|
}
|
||||||
|
|
||||||
public function items()
|
public function items()
|
||||||
{
|
{
|
||||||
return $this->hasMany(StoryItem::class);
|
return $this->hasMany(StoryItem::class);
|
||||||
|
|
Loading…
Reference in a new issue