firstOrFail(); } public function room() { return $this->belongsTo(Room::class, 'room_id', 'room_id'); } public function movie() { return $this->belongsTo(Movie::class, 'movie_id', 'movie_id'); } public function nowPlaying() { return $this->where('showing_start', '>=', now())->get(); } }