Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel eloquent pass to next element

$nextProdId = $this->items()->where('product_id', '>', $product->id)->min('product_id');        
return Product::find($nextProdId);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #eloquent #pass #element
ADD COMMENT
Topic
Name
4+4 =