I make simple cms in laravel 4.1, I created a lot of forms and they work fine, but the last form I create causes an error while submitting.
Illuminate \ Database \ Eloquent \ MassAssignmentException _token
Form submissions are also displayed on the error page.
_token KLlDjuFgaEmuGHKMpFjqSrukYT3sawOYYZLPGxnb name asdf body asdfasdfa bio sdfasdf
So this means that _token is also sent then why I get this error.
My form looks like this.
{{ Form::open(array('route' => 'admin.teachers.store','files'=>true)) }} <ul> <li> {{ Form::label('image', 'Image:') }} {{ Form::file('image') }} </li> <li> {{ Form::label('name', 'Name:') }} {{ Form::text('name') }} </li> <li> {{ Form::label('body', 'Body:') }} {{ Form::textarea('body',null,array('class'=>'ckeditor')) }} </li> <li> {{ Form::label('bio', 'Bio:') }} {{ Form::textarea('bio',null,array('class'=>'ckeditor')) }} </li> <li> {{ Form::submit('Submit', array('class' => 'btn btn-info')) }} </li> </ul> {{ Form::close() }}
I see one _token question related to the issue on the forum, but that didn't help me.
Thank you in advance:)
source share