mercredi 26 juillet 2017

Insert a config value into Blade view in Laravel 5.4

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