Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel env in js

<script>

var env_variable = '{{ env('VARIABLE') }}';

alert(env_variable);

</script>
Source by panjeh.medium.com #
 
PREVIOUS NEXT
Tagged: #laravel #env #js
ADD COMMENT
Topic
Name
2+1 =