How to use livewire

PHOTO EMBED

Mon Jan 02 2023 10:15:44 GMT+0000 (Coordinated Universal Time)

Saved by @ahmad007 #laravel #ajax

1. first of all install livewire
composer require livewire/livewire
2. make livewire component
php artisan make:livewire HomeComponent
3. Make a folder in views named with layouts
4. then make file app.blade.php
5. Then write {{$slot}} where you want to render your livewire component
6. then write this code right before closing of head tag
  @livewireStyles
6. then write this code right before closing of head tag
  @livewireStyles
7. then write this code right before closing of body tag
  @livewireScripts
content_copyCOPY