vendredi 13 mai 2016

How to get next id of autogenerated field in laravel for specific table?

I am looking for something like :

DB::table('users')->getNextGeneratedId();

not

$user->save($data)
$getNextGeneratedId = $user->id;

Does anybody know hot to achieve this ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire