With "updateOrCreate"
command, how do we update "created_by"
when insert new rows,
and update "updated_by"
when it updates?
$flight = App\Flight::updateOrCreate(
[
'departure' => 'Oakland',
'destination' => 'San Diego'
],
[
'price' => 99,
'created_by' => $user_id,
'updated_by' => $user_id,
]
);