data is not showing in a route when doing polymorphic relationship in laravel7 code example
Example: laravel how to query belongsTo relationship
$movies = Movie::whereHas('director', function($q) {
$q->where('name', 'great');
})->get();
$movies = Movie::whereHas('director', function($q) {
$q->where('name', 'great');
})->get();