I would like to add 1 to all the values in a table. I am doing this:
public function up()
{
DB::table('mytable')
->update([
'amount' => amount + 1,
]);
}
the above code does not work. How should I refer to a value (amount) using migrations?