[Vuejs]-No query results for model [App\Coin]. – Laravel – Vuejs

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

Leave a comment