php - Laravel 5: return number of affected rows MySQL -


how return similar php function mysql_affected_rows() when use laravel 5 db class,

ex: db::delete("delete chat id = {$mid}");

how return number of affected row?

thanks,

for update() , delete() calls, return value number of affected rows.

$affected = db::delete("delete chat id = {$mid}"); 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -