because if you are updating then you already know the id !
Jan 27, 2018
4
Level 33
Why does updateGetId not exists on the query builder?
Hi,
I know insertGetId(); exists on the query builder. But
why is there no updateGetId();? Is there a reason for this
or should I make a pull request because I need it ! :)
https://laravel.com/api/5.3/Illuminate/Database/Query/Builder.html
Thanks!
Level 122
and you want to know which row was updated?
I doubt thats possible because the database will update the matching row(s), the return value is the number of rows not the ones that are affected.
Your question implies that only one row was updated but that may not be the case.
1 like
Please or to participate in this conversation.