how to trigger an update function when a new row in insterted in laravel code example
Example: laravel update return updated row, laravel update return
$user = tap($user)->update(['votes' => 123]);
$user = tap($user)->update(['votes' => 123]);