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