src/Http/Controllers/RolesController.php
public function update(RolesRequest $request, $id)
    {
        $role = Role::findOrFail($id);
        $role->update($request->only($role->getFillable()));
        return redirect()->route('role.manager.index');
    }
public function update(RolesRequest $request, $id)
    {
        $role = Role::findOrFail($id);
        $role->update($request->only($role->getFillable()));
        return redirect()->route('role.manager.index');
    }
public function update ( RolesRequest $ request , $ id ) { $ role = Role :: findOrFail ( $ id ) ; $ role -> update ( $ request -> only ( $ role -> getFillable ( ) ) ) ; return redirect ( ) -> route ( 'role.manager.index' ) ; }
Update the specified resource in storage.

@param  int  $id
@param  RolesRequest $request
@return \Illuminate\Http\Response
Update the specified resource in storage .