Support the ongoing development of Laravel.io →
Database Eloquent Forms
Last updated 1 year ago.
0

It is a normal php-error, has nothing to do with Laravel. Checkboxes are not included in the request, if they are unchecked. So you have to validate theses fields with something like this:

$car = (array_key_exists('car', $data) ? 1 : 0;

If this fields should be mark as required, use the laravel validation-class: http://laravel.com/docs/master/validation

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

exelrate exelrate Joined 13 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.