delucaspinto

[LARAVEL] UPDATE OBJECT ONE LINE

Jan 9th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.09 KB | None | 0 0
  1. $produto = DB::table('produtos')->where('id_produtos_pendente', $id)->update(['ativo' => 0 ]);
Advertisement
Add Comment
Please, Sign In to add comment