<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Tag extends Model
{
  

   public function posts()
    {
        return $this->belongsToMany(Post::class,'post_pivot_tags','tag_id','post_id');
    }




}
