Explorar o código

Update StatusHashtag model

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
348ff3123e
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      app/StatusHashtag.php

+ 10 - 0
app/StatusHashtag.php

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