Globally Including JavaScript
- Create a new file in
resources/js - Import the file in
resources/js/app.js - Run
bun run dev - Include the file in your Blade tile
@vite('resources/js/custom.js')
The Working JavaScript
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#123456');