Insert hidden field for checkboxes

http://nielson.io/2014/02/handling-checkbox-input-in-laravel/

    This inserts a hidden field in my form with the same name, but opposite value of the approved checkbox. Since the HTML specification says that inputs are sent to the server in the same order as they are in the form, this works flawlessly. What happens is if the checkbox is unchecked, the value approved gets submitted as false using the hidden field. But if it is checked, the checkbox's value gets submitted instead because it comes after the hidden field.