📅  最后修改于: 2022-03-11 14:53:39.849000             🧑  作者: Mango
if ($request->has('name')) {
//
}
// When given an array, the has method will determine if all of the specified values are present:
if ($request->has(['name', 'email'])) {
//
}