// npm install alpinejs //in resources/js/bootstrap.js file window.Alpine = require('alpinejs'); Alpine.default.start();