I want to know that in laravel last inserted id give last insert id of Database table of particular user who insert in database or last insert id of all user inserting in database.In other word I am explaning with example .Let suppose there is table payment_table having field payment_done_at ,so I am updating payment_table by below code
$paymentTableObject=payment_table::where('id',1)
->first();
$paymentTableObject->payment_done_at= Carbon::now()
->toDateTimeString();
$paymentTableObject->save();
$lastInsertId=$paymentTableObject->id;
Now my question is $lastInsertId Will give last insert id saved in db by particular user or last insert id considering all user who saved data in db
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3ddCVah
via IFTTT
Aucun commentaire:
Enregistrer un commentaire