laravel touch on many relation code example
Example 1: laravel eloquent without relation
$books = Book::without('author')->get();
Example 2: laravel how to query belongsTo relationship
$movies = Movie::whereHas('director', function($q) {
$q->where('name', 'great');
})->get();