Skip to main content

find(), all(), first() and Their Extra Options

Premium
2:30

Let's talk about all() and first() methods of Eloquent. They have different parameters and kinds of advanced features.


So typically, if we launch all(), for example, from Tinker, it returns all the models.

In this case, there are three users in the database. Did you know you can specify the fields? The all() method accepts...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (30 h 41 min)

You also get:

55 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

No comments yet…

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.