0👍
Hope this helps you.
public function updateBank(Request $request)
{
$coin = Coin::findOrFail($request->id);
$coin->bank = ($request->bank - $request->cash);
$coin->save();
return response()->json(['response.data.etat' => $coin]);
}
👤syam
- [Vuejs]-Using for loop on nested object
- [Vuejs]-Where i should put dynamic and reactive parameter – in vue computed or vue store?
Source:stackexchange.com