📜  laravel db 存在 - PHP 代码示例

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

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