<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class CategoriePost extends Model
{
       public function posts()
    {
        return $this->belongsToMany(Post::class,'post_pivot_categories','categorie_post_id','post_id');
    }

}
