Unverified Commit 3f16b99a authored by Motch Julien's avatar Motch Julien Committed by GitHub

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
parent b0acbeb5
......@@ -88,6 +88,9 @@
filesystem: '{{ config('asgard.media.config.filesystem') }}'
};
</script>
@section('scripts-before')
@show
<script src="{{ mix('js/manifest.js') }}"></script>
<script src="{{ mix('js/vendor.js') }}"></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment