Laravel bagaimana menanyakan hubungan milik

$movies = Movie::whereHas('director', function($q) {
    $q->where('name', 'great');
})->get();
Fragile Flatworm