Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel how to check if there are record exists

//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
}
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #check #record #exists
ADD COMMENT
Topic
Name
1+3 =