Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Get next record

I have variable with id :

$var = $all->id;

How i can get next record in table after this id ?



1.5k
Accepted
answer
all::findFirst('id > '.$id)->limit(1); // ?