My application consists of the client side being written in HTML and Angularjs, while the server-side is using Laravel 5. Every time I submit my form, I send the models using $http
to a route in my Laravel 5 app, but I continuously encounter the error:
production.ERROR: exception 'Illuminate\Session\TokenMismatchException'...
I understand that this error occurs because the _token
is missing among my models. However, since my form page is solely in HTML and Javascript, how can I obtain it?