Skip to content

Instantly share code, notes, and snippets.

@jsdecena
Created October 16, 2017 02:39
Show Gist options
  • Save jsdecena/26100bc2ed8dbd8bc6a71944ee512b78 to your computer and use it in GitHub Desktop.
Save jsdecena/26100bc2ed8dbd8bc6a71944ee512b78 to your computer and use it in GitHub Desktop.
Order edit
// 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