Support the ongoing development of Laravel.io →
Eloquent Database Input
Last updated by @prodigyview 3 weeks ago.
0

can you cross check the

 is_public' => 'boolean|nullable',
  is_live'  => 'boolean|nullable',

is valid?

If the nullable modifier is not added to the rule definition, the validator would consider null

https://laravel.com/docs/9.x/validation#rule-nullable

Boolean: The field under validation must be able to be cast as a boolean. Accepted input are true, false, 1, 0, "1", and "0".

0

Sign in to participate in this thread!

LaraJobs

Your banner here too?

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.

© 2023 Laravel.io - All rights reserved.