Exemple #1
0
 public function getPaginated()
 {
     return Order::paginate(20);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function dashboard()
 {
     //
     $orders = \App\Order::paginate(15);
     return view("admin/orders/list", ['orders' => $orders]);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $orders = Order::paginate(15);
     return view('admin.orders.index', compact('orders'));
 }
Exemple #4
0
 public function showOrders()
 {
     $orders = Order::paginate(10);
     return view('backend.orders', compact('orders'));
 }