// Run a query e.g.,There's also a way using, but maybe @Harro Verton can tell us more about that (I never used it and from the code I cannot get it to work as wanted)
$query = \Model\User::query()->related('group')->get();
// Then echo the result
echo \DB::last_query();
$query = \Model\User::query()->related('group');
echo $query->build_query();
It looks like you're new here. If you want to get involved, click one of these buttons!