Global config file

Hello guys,

I want to make some init.js file where i can configure globally theme for example :slight_smile:

yes i found it:
$.fn.select2.defaults.set(“theme”, “bootstrap4”);
yes it works perfect only in html file which i am usning now.

I have already make my file:

$(function () {
// select2 theme
$.fn.select2.defaults.set(“theme”, “bootstrap4”);
/// select2 theme
})

and i am attaching it in laravel blade file

{!! Html::script(asset(‘assets/admin-lte/plugins/jquery/jquery.min.js’)) !!}

{!! Html::script(asset(‘assets/admin-lte/plugins/bootstrap/js/bootstrap.bundle.min.js’)) !!}

{!! Html::script(asset(‘assets/admin-lte/dist/js/adminlte.min.js’)) !!}

{!! Html::script(asset(‘assets/admin-lte/plugins/sweetalert2/sweetalert2.all.min.js’)) !!}
{!! Html::script(asset(‘assets/admin-lte/plugins/datatables/jquery.dataTables.min.js’)) !!}
{!! Html::script(asset(‘assets/admin-lte/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js’)) !!}
{!! Html::script(asset(‘assets/admin-lte/plugins/select2/js/select2.full.min.js’)) !!}
{!! Html::script(asset(‘assets/admin-lte/init.js’)) !!}
@stack(‘js’)

However it don’t works