DEV Community

Jeroen van Rensen
Jeroen van Rensen

Posted on

Laravel Livewire: an introduction

Laravel Livewire is a great framework for creating interactive web apps without writing any JavaScript. In this tutorial we're going to make a few components using Laravel Livewire so we can see the power of this framework.

Setting up

Important: Livewire requires you to use Laravel.

You can install Livewire using Composer:

composer require livewire/livewire
Enter fullscreen mode Exit fullscreen mode

Next, you have to include Livewire's assets on your page:

<livewire:styles /> <!-- Styles -->
<livewire:scripts /> <!-- Scripts -->
Enter fullscreen mode Exit fullscreen mode

And that was it! Now you can use Livewire.


Click here to continue reading.

Top comments (1)

Collapse
 
wulfheart profile image
Alex

This is barely an introduction. 😂