Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fylzero's avatar
Level 67

List of Eloquent methods? Cheatsheet?

Apologize if I missed or cant find this in the docs... but I've been kind of wondering for a while if there is a concise and complete list for the methods that are available when dealing with Model / data calls?

Like find(), findOrNew()... is there a cheat sheet out there that has all this together that anyone knows of?

Knowing where to reach for data helpers has been something I've found tricky and I've asked other devs... I'm not alone here.

Any help appreciated!

Edit: I guess what I'm looking for also includes database helpers. I get confused in the difference between the two. I just kind of wish laravel docs listed all of this together in a table of contents style like they do for helper functions.

0 likes
7 replies
tisuchi's avatar

Maybe some scattered documents you will find on the internet. For example, one of them is here

However, I honestly suggest following Laravel Api docs that @cronix suggested already. You will get all the list of the options there in different versions.

2 likes
fylzero's avatar
Level 67

@cronix @tisuchi Appreciate both answers... at some point I may just doc the API into my own cheasheet. Would help me to learn and help others to reference.

The API documentation is something I haven't dug into much. It really is overwhelming as someone who learns more visually.

I feel like understanding all of what you can do with Eloquent, DB helpers, what-have-you, is one of the more buried / hard to master areas of Laravel.

Now that I know where this lives... that is very helpful.

Thanks!

1 like
jlrdw's avatar

Then you will really love the vendor folder, the regular PHP and PDO that makes laravel work.

You need to check out the symphony API and Docs also which laravel uses quite a bit of. A good one is the HTTP Foundation class.

You'll be surprised to see the, you guessed it, regular PHP doing its thing.

fylzero's avatar
Level 67

@jlrdw I've been into the vendor folder a little bit. I honestly just want to build stuff, not get into the weeds too much where the "magic" happens. I think practical things like having a list of capabilities that Eloquent provides is a good thing. I will likely never be a high level PHP engineer. I just don't have the deeper level of interest. I simply want to build robust secure products that work. Thus why I am a Laravel fanboy.

3 likes
fylzero's avatar
Level 67

@AlTur As the best answer suggests, the API docs are the most comprehensive place to look.

https://laravel.com/api/10.x/Illuminate/Database/Eloquent/Builder.html https://laravel.com/api/10.x/Illuminate/Database/Query/Builder.html

This was one of the most difficult areas for me to learn personally. Highly recommend getting a copy of TinkerWell and using ->toSql() to experiment with converting queries for the sake of learning what Eloquent and the DB facade actually do.

2 likes

Please or to participate in this conversation.