some progress

This commit is contained in:
Doar Mihai
2026-03-07 13:29:50 +02:00
parent bf5c92c239
commit 72c2cd9485
15 changed files with 460 additions and 42 deletions
+3 -3
View File
@@ -71,9 +71,9 @@ class Movie extends Model
public function director()
{
return $this->belongsToMany(Person::class, 'movie_cast', 'movie_id', 'person_id')
->where('movie_cast.job', 'Director')
->orWhere('movie_cast.known_for_department', 'Directing')
return $this->belongsToMany(Person::class, 'movie_crew', 'movie_id', 'person_id')
->where('movie_crew.job', 'Director')
->orWhere('movie_crew.known_for_department', 'Directing')
;
}