<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Genre extends Model {protected $fillable=['tmdb_id','name','slug','is_active']; protected function casts():array{return ['is_active'=>'boolean'];} public function movies(){return $this->belongsToMany(Movie::class);} public function shows(){return $this->belongsToMany(Show::class);}}