<?php

namespace App\Models;

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

class Rahdaran extends Model
{
    use HasFactory;

    protected $guarded = [];
    protected $table = 'rahdaran';
    protected $hidden = ['pivot'];

    public function roadItemsProject(): BelongsToMany
    {
        return $this->belongsToMany(RoadItemsProject::class,'rahdaran_road_items_project');
    }
}
