Answers for "laravel exists"

PHP
1

laravel exist

if (User::where('email', $request->email)->exists()) {
   //email exists in user table
}
Posted by: Guest on July-31-2021
7

laravel not in query

DB::table(..)->select(..)->whereNotIn('book_price', [100,200])->get();
Posted by: Guest on September-26-2020
1

laravel exist

if($user->isEmpty()){
    // has no records
}
Posted by: Guest on July-31-2021
1

DB::table('users')->get();

DB::select('SELECT * FROM users WHERE name = "'.Input::get('name').'"');
Posted by: Guest on October-22-2020

Browse Popular Code Answers by Language