vendredi 16 avril 2021

How to get currently inserted row id in laravel 5.5

Here I am using laravel 5.5. My code is

$result = DB::insert('INSERT INTO .......');

Here it returns true . But how can I get inserted id . In my table id is primary key . Thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire