コード例 #1
0
 /**
  * 内容资源列表数据
  */
 public function index()
 {
     $order = $this->order->all();
     return $order;
 }
コード例 #2
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     return sizeof(Order::all());
 }
コード例 #3
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $orders = Order::all();
     return view('order.orderList', ['orders' => $orders]);
 }