Update StatusHashtag model

This commit is contained in:
Daniel Supernault 2019-02-03 14:49:47 -07:00
parent df2d37b27c
commit 348ff3123e
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 10 additions and 0 deletions

View File

@ -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);
}
}