Support the ongoing development of Laravel.io →
Requests Input Forms
Last updated 2 years ago.
0

In your model set the fillable fields and laravel will ignore the rest

protected $fillable = ['name'];

0

softwaredeveloperca said:

In your model set the fillable fields and laravel will ignore the rest

protected $fillable = ['name'];

Thats not quite my experience.. I've set the appropiate columns in my model, but laravel still crashes with the error above, about the '_method' field, which i've not listed as a fillable column.

0

You could use $request->except('_method'); to filter out that specific parameter.

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

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.

© 2024 Laravel.io - All rights reserved.