firstOrFail(); } public function genre() { return $this->belongsTo(Genre::class, 'genre_id', 'genre_id'); } public function showings() { return $this->hasMany(Showing::class, 'movie_id', 'movie_id'); } }