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,



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire