Reading Array variable from laravel 5.4 session using javascript
Hey everyone, I need a help. I am storing one array variable in laravel session but while reading it using javascript, I am not able to read. if I fetch index wise i am able to fetch but I am not able to loop through.
I am getting all waypoints from table and then I am trying to put all waypoints in google maps api waypoints. but, I am always getting error.
Uncaught SyntaxError: Unexpected identifier
Uncaught SyntaxError: Unexpected identifier
js?v=3.exp®ion=IN&language=en-gb&key=&libraries=places:40 Uncaught ReferenceError: addRoute is not defined
at tg.<anonymous> (get:174)
at tg.<anonymous> (js?v=3.exp®ion=IN&language=en-gb&key=&libraries=places:101)
at _.Dv._.A.trigger (js?v=3.exp®ion=IN&language=en-gb&key=&libraries=places:100)
at _.Dv.<anonymous> (js?v=3.exp®ion=IN&language=en-gb&key=&libraries=places:37)
at _.Su._.A.trigger (js?v=3.exp®ion=IN&language=en-gb&key=&libraries=places:100)
at _.Su.<anonymous> (js?v=3.exp®ion=IN&language=en-gb&key=&libraries=places:37)
at Object._.A.trigger (js?v=3.exp®ion=IN&language=en-gb&key=&libraries=places:100)
at cv (common.js:142)
at common.js:139
at Hu.B (common.js:132)