Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Vilfago's avatar

We progress :)

What is "care" ?

1 like
MuhammadUmar's avatar

@VILFAGO - thnx a lot bro, sory it was an attribute i added first now i remove it and code is working fine

Vilfago's avatar

With pleasure.

Take a look at the validation features, you have to check what the user provide before saving it to the database. https://laravel.com/docs/5.7/validation

And you can still optimize your route to have lighter method in controller.

sousadgaspar's avatar

Hi Dudes! I faced also the same errors in the beginning. I solved alway creating the property $fillable = [] in the model I was trying to create.

Previous

Please or to participate in this conversation.