I have set the variable $fillable
in my model. I wanted to test the update
functionality, and I get this error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column '_method' in 'field list' (SQL: update
positions
setname
= Casual Aquatic Leader,_method
= PUT,id
= 2,description
= Here is my description,updated_at
= 2014-05-29 17:05:11 wherepositions
.client_id
= 1 andid
= 2)"
Why is this yelling at _method
when my fillable doesn't have that as a parameter? My update function is:
Client::find($client_id)
->positions()
->whereId($id)
->update(Input::all());