how to find out how many query executed in laravel with relations code example
Example: eloquent relationships
$roles = App\User::find(1)->roles()->orderBy('name')->get();
$roles = App\User::find(1)->roles()->orderBy('name')->get();