[! [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