I do not run the scripts in Laravel 5.6

0

[! [In this part there are the 2 scripts that I am executing, but none of the 2 execute me at the time of running the website.] [2]] [2]

I need help, I do not know if in Laravel 5.6 something extra is needed to run the scripts, or if anyone knows why I do not run these codes, I thank you very much! Thank you! that's how I'm calling the files in the folders:

<script src="{{ asset('vendor/stringToSlug/jquery.stringToSlug.min.js') }}"></script>
    <script src="{{ asset('vendor/ckeditor/ckeditor.js') }}"></script>

@section('scripts')
    <script src="{{ asset('vendor/stringToSlug/jquery.stringToSlug.min.js') }}"> 
    </script>


    <script src="{{ asset('vendor/ckeditor/ckeditor.js') }}"></script>

    <script>
        $(document).ready(function(){
            $("#name, #slug").stringToSlug({
                callback: function(text){
                    $("#slug").val(text);
                }
            });
        });

        CKEDITOR.config.height = 400;
        CKEDITOR.config.width  = 'auto';
        CKEDITOR.replace('body');
    </script>
@endsection
    
asked by Sergio CR 12.08.2018 в 01:15
source

1 answer

0

For what you mention in your code, you have the call of the files "stringToSlug.js" and "ckeditor, js" duplicated (inside and outside the block "@section ('scripts')"). Try to eliminate those outside the block and try again.

    
answered by 15.08.2018 в 22:10