1if (DB::table('orders')->where('finalized', 1)->exists()) {
2 // ...
3}
4
5if (DB::table('orders')->where('finalized', 1)->doesntExist()) {
6 // ...
7}
1$users = User::where('email', '=', $request->input('email'))->first();
2if ($users === null) {
3 // User does not exist
4} else {
5 // User exits
6}