Replies: 1 comment 2 replies
-
Just use the count method of the Collection class. $records = UsersReservations::where('check_in_time', DB::raw('CURDATE() + 1'))->with(['plans', 'camp.camp_owner'])->get();
$count = $records->count(); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My full eloquent:
UsersReservations::where('check_in_time', DB::raw('CURDATE() + 1'))->with(['plans', 'camp.camp_owner'])->get()->toArray();
If I not calling toArray(), it will be working normal to return the collection with item.
Please help !! My english not good so sorry. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions