app/Http/Controllers/RoleController.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)
    {
        $role = Role::find($id);
        $role->name=$request->name;
        $role->description=$request->description;
        $role->save();
        return redirect()->action('RoleController@index');
    }
public function update ( Request $ request , $ id ) { $ role = Role :: find ( $ id ) ; $ role -> name = $ request -> name ; $ role -> description = $ request -> description ; $ role -> save ( ) ; return redirect ( ) -> action ( 'RoleController@index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
//