In your model set the fillable fields and laravel will ignore the rest
protected $fillable = ['name'];
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.
You could use $request->except('_method');
to filter out that specific parameter.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community