From 3f16b99a46ac635ef0ca6cf40d232aff01d0d17f Mon Sep 17 00:00:00 2001 From: Motch Julien <ju.motch@gmail.com> Date: Tue, 19 Mar 2019 15:27:21 +0100 Subject: [PATCH] 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 --- Themes/Adminlte/views/layouts/master.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Themes/Adminlte/views/layouts/master.blade.php b/Themes/Adminlte/views/layouts/master.blade.php index f352d970..43c8efd4 100644 --- a/Themes/Adminlte/views/layouts/master.blade.php +++ b/Themes/Adminlte/views/layouts/master.blade.php @@ -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> -- 2.21.0