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
Post a Comment