1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/specify-the-columns-you-want-to-select-when-fetching-all-models.md
2022-01-21 18:22:44 +01:00

539 B

title tweet_id thread_slug author_username images created_at slug
Specify the columns you want to select when fetching all() models 1484566713303584774 weekly-thread-2022-03 bhaidar
https://pbs.twimg.com/media/FI-ea7zUcAIf9z3.jpg
2022-01-21T16:41:01+00:00 specify-the-columns-you-want-to-select-when-fetching-all-models

🌶️ #Laravel tip: You can select the columns to run when using the Model::all() method. No need for an additional select() method.

A tiny tip to always keep in mind 💡

#PHP #Developers