Level 16
Was having the same issue, and found this thread which fixed the problem https://laracasts.com/discuss/channels/spark/spark-xsrf-error
1 like
Summer Sale! All accounts are 50% off this week.
I recently updated my laravel project from 5.2 to 5.3, I also updated Laravel Spark to 2.0 after that, I receive this error :
"Cannot read property 'set' of undefined"
It says it's a javascript error,
if (Cookies.get('XSRF-TOKEN') !== undefined) { request.headers.set('X-XSRF-TOKEN', Cookies.get('XSRF-TOKEN')); }
Was having the same issue, and found this thread which fixed the problem https://laracasts.com/discuss/channels/spark/spark-xsrf-error
Please or to participate in this conversation.