app/Http/Controllers/OrdersController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Order $order)
    {
        $order->update([
            'branch_id' => $request->input('branch'),
            'service' => $request->input('service'),
            'transportation' => $request->input('transportation'),
            'pickup_location' => $request->input('pickup_location'),
            'dropin_location' => $request->input('dropin_location'),
            'kilo' => $request->input('kilo'),
            'pickupdate' => $request->input('pickupdate'),
        ]);
        return redirect()->route('order.index')->with('success','Your order successfully updated!');
    }
public function update ( Request $ request , Order $ order ) { $ order -> update ( [ 'branch_id' => $ request -> input ( 'branch' ) , 'service' => $ request -> input ( 'service' ) , 'transportation' => $ request -> input ( 'transportation' ) , 'pickup_location' => $ request -> input ( 'pickup_location' ) , 'dropin_location' => $ request -> input ( 'dropin_location' ) , 'kilo' => $ request -> input ( 'kilo' ) , 'pickupdate' => $ request -> input ( 'pickupdate' ) , ] ) ; return redirect ( ) -> route ( 'order.index' ) -> with ( 'success' , 'Your order successfully updated!' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .