some progress
This commit is contained in:
@@ -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')
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user