Hello humans,
I have a handful of forms in my application. They're all rendered by Blade. All but one of them are working. The one that is not working is throwing the csrf mismatch exception. I have checked the inspector and see that the token for this form is identical to the token for all of the other forms in my application. The only difference between this form and others is that it has an enctype of multipart/form-data.
Form generation on a form that works:
{!! Form::open(['route' => 'dhcp.sharedNetwork.store']) !!}
Form generation on this one form that doesn't work:
{!! Form::open(['route' => ['ont.software.store', $type->id], 'files' => true]) !!}
Other applicable, possibly interesting, and hopefully helpful facts:
- This form works in my dev environment (homestead). It is only on the production server that it isn't working. I have other applications that use multipart/form-data forms on the production server that seem to work.
- The php5-fpm version on the production server is 5.5.9 while the php5-fpm version in homestead is 5.6.11.
Any thoughts on this? Any suggestions for further troubleshooting this? Thanks in advance for any feedback!