Laravel this is not only a practical framework, it is also a programming style
How can I translate this to be used within the laravel query builder ?
MYSQL
update mytable set val = val +1 where id = 1
In laravel
$res = DB::table('mytable') ->update(['val' => ?]);
Thanks
Aucun commentaire:
Enregistrer un commentaire