<?php

namespace App\Models;

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

class Genre extends Model
{
    protected $fillable = ['name'];

    public function tracks(): BelongsToMany
    {
        return $this->belongsToMany(Track::class, 'track_genre');
    }
}
