Answers for "laravel model exists id"

PHP
1

laravel model dont exists id

if (DB::table('orders')->where('finalized', 1)->doesntExist()) {
    // ...
}
Posted by: Guest on August-27-2021
1

laravel model exists id

if (User::where('email', '=', Input::get('email'))->exists()) {
   // user found
}
Posted by: Guest on July-23-2020

Browse Popular Code Answers by Language