📌  相关文章
📜  laravel 8 检查记录是否存在 - PHP 代码示例

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

代码示例3
//User::  User is going to be what model you use.
//$user can be what ever you need it to be
$user = User::where('email', '=', Input::get('email'))->first();
if ($user != null) {
   // Record does exist
}