コード例 #1
0
 public function orderFinish()
 {
     $order = session('order');
     $orderString = $this->orderString($order);
     $code = str_random(4);
     Openorder::create(['order' => $orderString, 'code' => $code]);
     session()->flush();
     return view('orders.end')->with('code', $code);
 }