Monday, April 3, 2017

Two Forms on one page, With ajax submit functionality, _token is missing in Laravel

I've two different forms on one page. one accept the registration number to display user information with ajax.

The other one saves the information on another table with additional data. Now the problem is both forms have same _token value. So once the ajax form is submitted that _token is used so when I save other form I got _token error.

I'm using Form::open() and Form::close() for both forms.

What should I do?



via Rizwan Saleem

Advertisement