Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel fetch max value

Cliente::max('id')
  
  or
  
$maxValue = Cliente::orderBy('id', 'desc')->value('id'); // gets only the id  
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #fetch #max
ADD COMMENT
Topic
Name
9+4 =