app/Http/Controllers/Admin/cashinController.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(CashInValidator $request, $id)
    {
        $data = $request->all();
        $cashin = CashIn::findorfail($id);
        $cashin->update($data);
        return redirect()->route('cashin.index')->with('success', 'Cashin Updated Successfully');
    }
public function update ( CashInValidator $ request , $ id ) { $ data = $ request -> all ( ) ; $ cashin = CashIn :: findorfail ( $ id ) ; $ cashin -> update ( $ data ) ; return redirect ( ) -> route ( 'cashin.index' ) -> with ( 'success' , 'Cashin Updated Successfully' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .