Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel eloquent get current sequence value

$statement = DB::select("SHOW TABLE STATUS LIKE 'users'");
$nextId = $statement[0]->Auto_increment;
 
PREVIOUS NEXT
Tagged: #laravel #eloquent #current #sequence
ADD COMMENT
Topic
Name
1+3 =