In my app.blade.php file, I have a script tag from CoreUI that looks like this:
<script src="{{ asset('js/coreui.js') }}" defer></script>
. However, I have noticed that the script is not being called on every route page, which means that the functions inside are not working. I attempted to require it in my app.js with require('./coreui')
, but this did not solve the issue either. The only way I can get it to work is by hard refreshing the browser.