Allan Dantas
Allan Dantas
Here it is: https://github.com/allandantasdev/laravel-bug-report-51825/commit/ce9741abbe623a36d147e46dec66269532cf90b5
Additional info: - This is the query generated by Auth::user()->categories->pluck('id') at Example@scopeHasAccess:24 while lazy loading  - And is the same query generated after trying to eagerloading Category::with('examples'): 