Magento, Laravel, Eloquent.
Debug Queries using the Laravel Query Log Laravel query log that collects all queries within a request. You can enable this log, run your query and dump the output. DB::enableQueryLog(); App\User::query() ->where('created_at', '<', now()->subYear()) ->with('assignedApps', 'courses')