Answers for "database value exist or not in laravel"

PHP
2

laravel db does not exists

if (DB::table('orders')->where('finalized', 1)->exists()) {
    // ...
}

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

Code answers related to "database value exist or not in laravel"

Browse Popular Code Answers by Language