app/Http/Controllers/Laundry/LaundriesController.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, $id)
    {
        $order = Order::find($id);
        $service = $request->input('service');
        $kilo = $request->input('kilo');
        $pickupdate = $request->input('pickupdate');
        $order->service = $service;
        $order->kilo = $kilo;
        $order->pickupdate = $pickupdate;
        $order->save();
        return redirect('laundry/orders')->with('success','Order was successfully updated!');
    }
public function update ( Request $ request , $ id ) { $ order = Order :: find ( $ id ) ; $ service = $ request -> input ( 'service' ) ; $ kilo = $ request -> input ( 'kilo' ) ; $ pickupdate = $ request -> input ( 'pickupdate' ) ; $ order -> service = $ service ; $ order -> kilo = $ kilo ; $ order -> pickupdate = $ pickupdate ; $ order -> save ( ) ; return redirect ( 'laundry/orders' ) -> with ( 'success' , 'Order was successfully updated!' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .