I would like to get the values for a series of checkboxes I have set up in a Laravel 4 form. Here is the code in the view setting up the checkboxes:
@foreac
If checkboxes are related then you should use [] in the name attribute.
@foreach ($friends as $friend) @endforeach $friends_checked = Input::get('friend'); if(is_array($friends_checked)) { // do stuff with checked friends }