🔥 Laravel tip: Subquery select
Mar 22, 2022
You can add another column to your query using subqueries, for example, here I'm adding the last post title to my users query.
This will return all my user columns plus a `last_post_title` with the title of the last post the user created.
This will return all my user columns plus a `last_post_title` with the title of the last post the user created.

Other tips:
🔥 Laravel Tip: make method constructor parameters
Apr 16, 2022
🔥 Laravel Tip: the discardChanges method.
Nov 29, 2022