app/Http/Controllers/Admin/AccountTypesController.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)
    {
        $mndob = Account_type::find($id);
        $mndob->name_ar = $request->name_ar;
        $mndob->name_en = $request->name_en;
        $mndob->save();
        return redirect(route('account_types.index'));
    }
public function update ( Request $ request , $ id ) { $ mndob = Account_type :: find ( $ id ) ; $ mndob -> name_ar = $ request -> name_ar ; $ mndob -> name_en = $ request -> name_en ; $ mndob -> save ( ) ; return redirect ( route ( 'account_types.index' ) ) ; }
Update the specified resource in storage.
Update the specified resource in storage .