DEV Community

Cover image for How to Use Alpine JS with Laravel
Suresh Ramani
Suresh Ramani

Posted on

How to Use Alpine JS with Laravel

What is Alpine JS?
Alpine.js is a relatively new front-end framework that promises the reactive and declarative nature of big frameworks like Vue.js or React.js without having to run npm, compile scripts, configure webpack all in a nice 7.37kb CDN hosted file. You get to keep your DOM and sprinkle in behavior as you see fit. Think of it like Tailwind for JavaScript.

According to the Alpine.js docs , its syntax is almost entirely borrowed from Vue.js (and by extension Angular.js ), so if you already know either of these frameworks there is a very low learning curve to getting started.

In this blog, We will learn how to use alpine.js In Laravel with two examples.

Alpine.js CDN
Laravel Mix

https://techvblogs.com/blog/alpine-js-with-laravel

Top comments (0)