DEV Community

Cover image for How to Use Alpine JS with Laravel

How to Use Alpine JS with Laravel

Suresh Ramani
I am working on Laravel, Vue.js, React.js ( Learning ), and a little bit familiar with Node.js,, and MongoDB. and I am do all stuff on Ubuntu so I familiar with Linux Operating System.
・1 min read

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

Discussion (0)

Forem Open with the Forem app