Support the ongoing development of Laravel.io →

cotherman

Joined 25 Apr 2017

Statistics

Threads 1
Replies 1
Solutions 0
Articles 0
posted 7 years ago

->count() and ->get()->last()

I have, $a = App\SomeModel::where('id', 1)->get()->last(); My model's table has 72 entries. $a...

0 Likes
3 Replies
Solved
replied 7 years ago
0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.