|
@@ -7,4 +7,14 @@ 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'];
|
|
|
|
+
|
|
|
|
+ public function status()
|
|
|
|
+ {
|
|
|
|
+ return $this->belongsTo(Status::class);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hashtag()
|
|
|
|
+ {
|
|
|
|
+ return $this->belongsTo(Hashtag::class);
|
|
|
|
+ }
|
|
}
|
|
}
|