update in lara code example
Example 1: update or create laravel
$user = User::updateOrCreate(['name' => request()->name], [
'foo' => request()->foo
]);
Example 2: create laravel update
const CREATED_AT = 'creation_date';
const UPDATED_AT = 'last_update';