I want to insert a Laravel config value into a view (more precisely, into a JavaScript variable inside a Vue template).
I' trying:
var BOSH_SERVICE = "<?php echo config('app.boshurl') ?>";
And
var BOSH_SERVICE = "";
But none of these works.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire