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