model laravel tidak ada id
if (DB::table('orders')->where('finalized', 1)->doesntExist()) {
// ...
}
Shadow
if (DB::table('orders')->where('finalized', 1)->doesntExist()) {
// ...
}
if (User::where('email', '=', Input::get('email'))->exists()) {
// user found
}