mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-13 01:54:30 +00:00
24 lines
326 B
PHP
24 lines
326 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Story extends Model
|
|
{
|
|
public function items()
|
|
{
|
|
return $this->hasMany(StoryItem::class);
|
|
}
|
|
|
|
public function reactions()
|
|
{
|
|
return $this->hasMany(StoryReaction::class);
|
|
}
|
|
|
|
public function views()
|
|
{
|
|
return $this->hasMany(StoryView::class);
|
|
}
|
|
}
|