Update StatusHashtag

This commit is contained in:
Daniel Supernault 2019-03-01 22:27:43 -07:00
parent 047d89c1b2
commit d39947ed08
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -6,7 +6,11 @@ use Illuminate\Database\Eloquent\Model;
class StatusHashtag extends Model class StatusHashtag extends Model
{ {
public $fillable = ['status_id', 'hashtag_id']; public $fillable = [
'status_id',
'hashtag_id',
'profile_id'
];
public function status() public function status()
{ {
@ -17,4 +21,9 @@ class StatusHashtag extends Model
{ {
return $this->belongsTo(Hashtag::class); return $this->belongsTo(Hashtag::class);
} }
public function profile()
{
return $this->belongsTo(Profile::class);
}
} }