app/Http/Controllers/CurrencyController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Currency  $currency
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $currency = Currency::find($id);
        $currency->name = $request->input('name');
        $currency->save();
        return redirect()->route('currency.index');
    }
public function update ( Request $ request , $ id ) { $ currency = Currency :: find ( $ id ) ; $ currency -> name = $ request -> input ( 'name' ) ; $ currency -> save ( ) ; return redirect ( ) -> route ( 'currency.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .