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