<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class SitePageTag extends Model
{
    use HasFactory;
    protected $table = 'site_pages_tag';


    public function pages()
    {
        return $this->belongsToMany(
            SitePage::class,
            'site_pages_tag_relationship',
            'tag_id',
            'pages_id'
        );
    }
}
