DEV Community

Kajal Pandya
Kajal Pandya

Posted on

Laravel Livewire

Livewire is a full-stack framework for Laravel framework that makes building dynamic interfaces simple, without leaving the comfort of Laravel.

If you are using livewire with laravel then you don't worry about writing jquery ajax code, livewire will help to write very simple way jquery ajax code using php. Without page refresh laravel validation will works, form will submit etc.

Laravel Livewire release adds the following:

Turbolinks integration

Alpine JS integration

Support for wire:model listening for “input” events dispatched by AlpineJS: $dispatch(‘input’, ‘foo’)

Support for wire:custom-event="foo" receiving params from an AlpineJS dispatch: $dispatch('custom-event', 'bar').

Livewire custom-tag syntax

What it does ?

Livewire renders the initial component output with the page (like a Blade include), this way it’s SEO friendly.

When an interaction occurs, Livewire makes an AJAX request to the server with the updated data.

The server re-renders the component and responds with the new HTML.

Livewire then intelligently mutates DOM according to the things that changed.

To get started please follow below link :

https://laravel-livewire.com/docs/quickstart/

Top comments (0)