Answer the question
In order to leave comments, you need to log in
How to increase value in base by 1?
There was a need to update the database, and add + 1 to one field (well, or the value that I will change dynamically)
$book = CardModel::where('number_card', $id)->first();
$ff = 1;
$book->count_cup ++;
$book -> save();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question