laravel/framework — pull request #3568 by killswitch (2014-02-15 17:44:54+00:00)
Title: Add hidden field for checkbox

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.