<?php

namespace App\Models;

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

class Film extends Model
{
    use HasFactory;

    protected $fillable = ['name', 'author', 'genre', 'quantity', 'cost'];

    public function orders() {
        return $this->belongsToMany('App\Models\Order');
    }
    
}
