Support the ongoing development of Laravel.io →
Input Database Eloquent

Hi,

I have a problem with Eloquent ignoring a form field - not adding the selected value to the database.

When I

$queries = DB::getQueryLog();
dd($queries);

I can't see my form field name in the query. I use mass assignment, the fillables are set, there is no typo. Also I am casting the value to the right type.

All the rest of my culumns are filled in nicely.

I also tried to google it but found nothing. Have you guys gut any idea what can cause this?

---Update---

I tried updating the field in question by "normal assignment" and it works. So the culprit has to be Eloquent.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

corona corona Joined 8 Apr 2016

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.

© 2025 Laravel.io - All rights reserved.