Support the ongoing development of Laravel.io →
Requests Input Forms
Last updated 7 months 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 6 years ago.
0

Sign in to participate in this thread!

LaraJobs

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.

© 2022 Laravel.io - All rights reserved.