Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel db does not exists

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

if (DB::table('orders')->where('finalized', 1)->doesntExist()) {
    // ...
}
 
PREVIOUS NEXT
Tagged: #laravel #db #exists
ADD COMMENT
Topic
Name
2+2 =