some progress
This commit is contained in:
@@ -72,7 +72,8 @@ class Movie extends Model
|
||||
public function director()
|
||||
{
|
||||
return $this->belongsToMany(Person::class, 'movie_cast', 'movie_id', 'person_id')
|
||||
->where('movie_cast.known_for_department', 'Directing')
|
||||
->where('movie_cast.job', 'Director')
|
||||
->orWhere('movie_cast.known_for_department', 'Directing')
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user