📜  laravel 存在 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:05.053000             🧑  作者: Mango

代码示例5
$users = User::where('email', '=', $request->input('email'))->first();
if ($users === null) {
  // User does not exist
} else {
  // User exits
}