Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DB::table($object)->where('id', $id)
- ->update(['deleted' => 1]);
- $success = true;
- if(DB::table($object)->where('deleted', 0)->whereNull('deleted_at')->count() > 1) {
- DB::table($object)->where('id', $id)
- ->update(['deleted' => 1);
- $success = true;
- } else {
- $success = false;
- } //end if
- }//end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement