dimanche 1 novembre 2015

Laravel 5: return number of affected rows MySQL

how to return something similar to PHP function mysql_affected_rows() when use Laravel 5 DB class,

ex: DB::delete("DELETE FROM chat WHERE id = {$mid}");

how to return number of affected row?

thanks,



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1GGktmd
via IFTTT

Aucun commentaire:

Enregistrer un commentaire