app/Http/Controllers/OrderController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $orders=Order::orderBy('id','DESC')->paginate(10);
        return view('backend.order.index')->with('orders',$orders);
    }
public function index ( ) { $ orders = Order :: orderBy ( 'id' , 'DESC' ) -> paginate ( 10 ) ; return view ( 'backend.order.index' ) -> with ( 'orders' , $ orders ) ; }
Display a listing of the resource.
Display a listing of the resource .