Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Model API Docs and 3 More Random Methods

Premium
1:26

The final thing I want to do in this section about various methods and properties of Eloquent Model structure is to refer you to the official API docs. Only a few people know that, but in addition to the official Laravel documentation, API documentation lists all potential methods, properties, and syntax options.

So if you go to api.laravel.com and look for an example, specifically for Model which is inside of Illuminate/Database/Eloquent, there's a considerable amount. You can find a lot of hidden gems.

For example, what I haven't shown you in this course, increment(). There are a few methods to increment or decrement some values in your Eloquent Model instead of doing plus one and save or update you just increment or decrement by some amount.

Also, there's an interesting method called...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (29 h 14 min)

You also get:

54 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…