Courses

Better Eloquent Performance

Example Demo: whereHas vs join() on DEEPER relationships

Previous: Eloquent vs Query Builder: whereHas vs join() vs Raw SQL
avatar

I only use laravel as an api, is there a way to check the number of queries?

avatar

Yes! For that you can use one of these tools:

https://pulse.laravel.com/ https://laravel.com/docs/11.x/telescope

They have different use-cases, but both can help you work out problematic places :)

avatar
You can use Markdown
avatar
You can use Markdown