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



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3eawpjx
via IFTTT

Aucun commentaire:

Enregistrer un commentaire