laravel delete eloquent query code example
Example 1: laravel delete where
DB::table('users')->where('id', $id)->delete();
Example 2: laravel eloquent remove from db
$res=User::where('id',$id)->delete();
DB::table('users')->where('id', $id)->delete();
$res=User::where('id',$id)->delete();