I am new to Laravel. Please excuse the newbie question but how do I find if a record exists?
$user = User::where(\'em
It's simple to get to know if there are any records or not
$user = User::where('email', '=', Input::get('email'))->get(); if(count($user) > 0) { echo "There is data"; } else echo "No data";