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