🔥 Laravel Tip: Prevent model hydration on Eloquent queries
Nov 18, 2022
If you want to take advantage of Eloquent features (ex: scopes, soft deletes, etc).
But you don't want the query to hydrate models for performance reasons. You can call the `toBase` method on your query.
But you don't want the query to hydrate models for performance reasons. You can call the `toBase` method on your query.
Other tips:
🔥 Laravel Tip: Map vs Transform in collections
Sep 13, 2022
🔥 Laravel tip: the `isDirty` method
Jan 28, 2022
🔥 Service provider binding cheat sheet
Mar 13, 2022