<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

class Tag extends Model
{
    protected $fillable = ['name', 'slug', 'posts_count'];

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