<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Route extends Model
{


    protected $fillable = [
        'user_id',
        'description',       
        'distance',       
        'title',       
        'points',    
        'public'   
    ];
    

    public function mountains()
    {
        return $this->belongsToMany(Mountain::class, 'route_mountain');
    }
}
