laravel check if ids exsists in related tale code example
Example: if notexists in laravel query
if (User::where('email', '=', Input::get('email'))->exists()) {
// user found
}
if (User::where('email', '=', Input::get('email'))->exists()) {
// user found
}