check if an element exists laravel

Solutions on MaxInterview for check if an element exists laravel by the best coders in the world

showing results for - "check if an element exists laravel"
Abril
21 Nov 2017
1if (User::where('email', '=', Input::get('email'))->count() > 0) {
2   // user found
3}