Created
October 16, 2017 02:39
-
-
Save jsdecena/26100bc2ed8dbd8bc6a71944ee512b78 to your computer and use it in GitHub Desktop.
Order edit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Yours | |
DB::table('orders')->update([ | |
[ | |
'tracking_no' => $request->input('tracking_no'), | |
'bc_no' => $request->input('bc_no'), | |
] | |
] | |
// Try this: | |
$order = DB::table('orders') | |
->update([ | |
'tracking_no' => $request->input('tracking_no'), | |
'bc_no' => $request->input('bc_no'), | |
]) | |
->where('id', $id); | |
dd($order); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment