Answers for "laravel fetch max value"

PHP
0

laravel fetch max value

Cliente::max('id')
  
  or
  
$maxValue = Cliente::orderBy('id', 'desc')->value('id'); // gets only the id
Posted by: Guest on November-27-2020

Browse Popular Code Answers by Language