How to multiple checkboxes values in laravel

QuestionsCategory: LaravelHow to multiple checkboxes values in laravel
Anuj Kumar asked 7 months ago

Please see the below example to manage and insert multiple checkboxes:-
in blade file:-

<input type="checkbox" name="permissions[]" id="users-checkbox" class="checkbox-input" value="permission1">

<input type="checkbox" name="permissions[]" id="users-checkbox" class="checkbox-input" value="permission2">

 
in controller
$permisions = $request->input('permissions');
 
print_r($permisions); 

Your Answer

Related Posts

Begin typing your search above and press enter to search. Press ESC to cancel.

Back To Top