Support the ongoing development of →
Eloquent Database Input
Last updated by @prodigyview 1 year ago.

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

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


I believe you’re overwriting your input data with the original event data.

$data = $input + $event->toArray();

Try the opposite (& use array_merge for improved readability)

$data = array_merge($event->toArray(), $input)


Sign in to participate in this thread!


Your banner here too?


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.