Laravel Pro Tips
#eloquent #relationships #subqueries
🔥 #Laravel If you're only using one record from your many-to-many relationships, you can use subqueries instead of loading all the records. For example, if I only need to know the title of the most viewed post from a user. This can reduce your memory usage significantly.
Cosme Escobedo
No articles were found.