app/Http/Controllers/OrderDetailController.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()
    {
          $orderdetails = OrderDetail::all();                         
          return View::make('orderdetails.index')->with('orderdetails', $orderdetails); 
    }
public function index ( ) { $ orderdetails = OrderDetail :: all ( ) ; return View :: make ( 'orderdetails.index' ) -> with ( 'orderdetails' , $ orderdetails ) ; }
Display a listing of the resource.
Display a listing of the resource .
// Retrieve all the order details         // Load the view and pass the retrieved order details to the view for further processing         