I am working on a single page application and I am using Laravel 5 for the web service.
All forms are submitted asynchronously and I use a beforeSend on them to atta
For anyone using default Laravel setup:
window.Laravel = {!! json_encode([ 'csrfToken' => csrf_token(), ]) !!}; Dropzone.options.attachments = { url: 'upload', headers: { 'X-CSRF-TOKEN': Laravel.csrfToken } }