Is it possible to pass data to app.js in Laravel? I need to pass the value of Session::getId() to app.js since I create a websocket in that file. I know it is possible to get the CSRF-TOKEN like so:
$('meta[name="csrf-token"]').attr('content');
but I need the session ID.
Thanks for any help!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire