📅  最后修改于: 2022-03-11 14:55:57.154000             🧑  作者: Mango
代码示例2
$user = User::updateOrCreate(
['email' => request('email')],
['name' => request('name')]
);
// Do other things with the User