private function buildOrderFromAlpha($alphaOrder) { $bravoOrder = $this->getBravoOrder($alphaOrder->order_number); $order = new Order(); $order->fill(['order_number' => $alphaOrder->order_number, 'alpha' => $alphaOrder->alpha, 'bravo' => $bravoOrder->bravo]); return $order; }
/** * @param Request $request * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector */ public function store_adres(Request $request) { $order = new Order(); $order->fill($request->all()); $order->email = $request->input('order_email'); if ($request->input('email') && $request->input('password')) { $request->merge(array('name' => $order->Fullname)); $this->postRegister($request); } Session::put("order", $order); return redirect('/shoppingcart/step/2'); }