mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update StatusHashtag model
This commit is contained in:
parent
df2d37b27c
commit
348ff3123e
1 changed files with 10 additions and 0 deletions
|
@ -7,4 +7,14 @@ use Illuminate\Database\Eloquent\Model;
|
|||
class StatusHashtag extends Model
|
||||
{
|
||||
public $fillable = ['status_id', 'hashtag_id'];
|
||||
|
||||
public function status()
|
||||
{
|
||||
return $this->belongsTo(Status::class);
|
||||
}
|
||||
|
||||
public function hashtag()
|
||||
{
|
||||
return $this->belongsTo(Hashtag::class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue