app/Http/Controllers/ordersController.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()
    {
        $user_id= Auth::user()->id;
        $orders=App\Orders::where('user_id', $user_id) ->orderBy('created_at', 'asc')
            ->get();
        return View::make('feedback')->with('orders', $orders);
    }
public function index ( ) { $ user_id = Auth :: user ( ) -> id ; $ orders = App \ Orders :: where ( 'user_id' , $ user_id ) -> orderBy ( 'created_at' , 'asc' ) -> get ( ) ; return View :: make ( 'feedback' ) -> with ( 'orders' , $ orders ) ; }
Display a listing of the resource.
Display a listing of the resource .