Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

How to access config data in .js in Laravel (Not in blade)

$
0
0

I can access the config data in .blade using

{{ config('config.variable') }}

However, I have no idea how to access the config data in .js file. Can anyone give me some suggestion?


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>