Support the ongoing development of →
Database Eloquent Forms
Last updated 2 years ago.

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:

Last updated 8 years ago.

Sign in to participate in this thread!


Your banner here too?

exelrate exelrate Joined 13 Oct 2015


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

Your logo here?

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

© 2024 - All rights reserved.