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