Support the ongoing development of Laravel.io →
Database Eloquent Testing
Last updated 2 years ago.
0

I would first check if name column in the database is of type string, and then if it added to the $fillable so you can mass assign it. Hope it helps

0

I do not hit the database since I'm using make() instead of create. Anyway the field is of type varchar thus correct.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

gambledor gambledor Joined 11 Sep 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.