exists() & doesntExists() in laravel if (DB::table(‘orders’)->where(‘finalized’, 1)->exists()) { // … } if (DB::table(‘orders’)->where(‘finalized’, 1)->doesntExist()) { // … } You Might Also Like Get Userid in laravel October 29, 2023 How to create google search features with location, logitude and latitude April 22, 2025 Laravel ajax insert multiple records July 29, 2023 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.