Laravel Community Tools by Tighten

Kupendra Pansuriya

Joined: 6 years ago
Total tricks: 1
Last trick: 6 years ago

Submitted tricks

If you want to count the number of results from a relationship without actually loading them you may use the "withCount" method, which will place a "{relation}_count" column on your resulting models.
kupendra 6 years ago 12044