Update master.blade.php
Small addition, for some vuejs, I need to pass data on the mount method, but those date need to be available before the '/js/app.js', if not I can't access the data.
For instance in a create/edit/index.blade.php I have
@section('scripts-before')
<script>
window.Etablissements = {
villes: {!! json_encode($data) !!},
};
</script>
@stop
Showing
Please register or sign in to comment