Handle checkboxes in Input::all() in Laravel 4

forms, laravel, php

Solution

I found a workaround for this

{{ Form::hidden('done', 0); }}
{{ Form::checkbox('done', 1); }}

Problem

I want to update my model with following code: ``` $feature = Feature::find($id)->update(Input::all()); ``` This works for all fields except the "done"-field which is a boolean in the table and represented by checkbox in the edit form. ``` {{ Form::label('done', 'Done?')}} {{ Form::checkbox('done',1)}} ``` How can i handle checkboxes with update and Input:all() ? Thank you.

Original source