pixelfed/app/StatusHashtag.php

21 lines
306 B
PHP
Raw Normal View History

2018-06-01 03:15:37 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class StatusHashtag extends Model
{
public $fillable = ['status_id', 'hashtag_id'];
2019-02-03 21:49:47 +00:00
public function status()
{
return $this->belongsTo(Status::class);
}
public function hashtag()
{
return $this->belongsTo(Hashtag::class);
}
2018-06-01 03:15:37 +00:00
}