<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Episode extends Model {protected $fillable=['show_id','season_id','tmdb_id','episode_number','title','overview','still_path','air_date','runtime','vote_average','is_active']; protected function casts():array{return ['air_date'=>'date','is_active'=>'boolean'];} public function show(){return $this->belongsTo(Show::class);} public function season(){return $this->belongsTo(Season::class);}}