- Getting started with Laravel Livewire
- Tweet about the book!
- About the Author
- Copyright
- Map
-
Chapter 1: About Laravel Livewire
- What does Livewire offer us?
-
Chapter 2: Create a project
- Create the project in Laravel Livewire on MacOS or Linux
- Create the project in Laravel Livewire on Windows
- Second way to install Laravel Livewire
-
Chapter 3: Characteristics of a Livewire project
- Laravel Fortify
- Options
- Project structure
- Post views
-
Chapter 4: Introduction to Livewire Components
- Migrations
- Models
- Components
- Define routes
- Testing with a Component
- Component to create a category
- Wire:x Directive references
- Requests to the server from Livewire
- Validate forms
- Reuse Livewire Components
- Life cycle of a component
- Update a record
- List
- Delete
-
Chapter 5: Components and Styles
- Form
- Table
- Card
- Layout header
- Container
- Alert Dialog to Remove: Confirmation component
- Action taken message
- Menu: Dropdown Component (PC Mode)
- Menu: Dropdown component (Mobile mode)
- Link to create a category
-
Chapter 6: Communication in components
- Create migrations
- Livewire Components
- Models
- Migrations
- Form to create a general contact
- Form to create a contact per person
- Form to create a contact by company
- Form to create a contact by detail
- Initial form logic step by step
- @livewire directive to render components
- Events: Communication between components
- Define layout
- Step-by-step design
- $wire object
- Step 3:
- Parent to child communication: Send the general contact id to child components
- Enable saving on child components
- Load registered contact data
- Final styling details
-
Chapter 7 : CRUD for posts
- General changes
- Save and edit
- List
-
Chapter 8: Filters and search fields
- Table changes
- Seeders for posts
- Filters for categories, posts and types
- Search field for id, title and description
- Filter by date range
-
Chapter 9: Sort Fields
- Traits and Livewire components for code reuse
-
Chapter 10 : Livewire JavaScript
- Introduction to Hooks in JavaScript
- Accessing properties from JavaScript and CKEditor
- Resume
-
Chapter 11: Livewire Properties
- Defer update for wire:model
- Computed properties
-
Chapter 12: Simple Blog Web
- Routes
- Model
- Layout for the web
- Post listing
- Post detail
-
Chapter 13: Shopping cart
- General scheme
- Item component
- Cart Component Changes
- Replicate the shopping cart in the database
- Show a message when performing actions on the cart
- Button to show the total number of items
- Chapter 14: Create an Alpine.js to do list application
-
Chapter 15: Adapting the Alpine.js To do list Application with Livewire
- Create Component in Livewire
- Create migration and model for Todos
- Create to do from Livewire
- Popular listings from Livewire
- Replicate sort to do property
- Replicate sort in the database
- Ordination, second scheme
- Ordination, third scheme
- Remove a to do
- Edit a to do
- Mark completed a to do
- Delete all to do
- Extra: Reordering of to do by axios
- Migrate from Bootstrap to Tailwind
- Conclusions
Full-Stack Laravel 13 and Livewire 4 + IA + Alpine.js: Build real applications from scratch
Master reactive flow with Livewire 3, Flux, Boost, and Alpine.js by building real full-stack applications from scratch
Laravel Livewire takes Laravel development a step further; automating routine processes in very flexible schemes based on components, Livewire components that allow us to communicate client and server in a very simple, efficient and easy way.
With Membership
Free!
$20.00
You pay
Author earns
About
About the Book
Laravel is a fascinating framework, huge and with a somewhat steep learning curve and with multiple options; this book is not for beginners and assumes that you already know how to program in Laravel.
Laravel Livewire takes Laravel development a step further; automating routine processes in very flexible schemes based on components, Livewire components that allow us to communicate client and server in a very simple, efficient and easy way.
Laravel Livewire is not a framework, it is just a layer or scaffolding that adds certain extra features to the framework that we can use to create great applications, with less effort and development time.
Map
Chapter 1 - About Laravel Livewire: In this chapter, we will create a simple CRUD application and learn about all the elements of Livewire, such as handling forms, views, and directives using Livewire components.
Chapter 2 - Introduction to Livewire Components: In this chapter, we are going to create a simple CRUD type application and get to know all the elements of Livewire such as handling forms, views and directives through the Livewire components.
Chapter 3 - Components and Styles: In this chapter, we are going to work on the style, improving the created application so that it looks like another Laravel Livewire module.
Chapter 4 - Communication between components: In this chapter, we are going to learn about the communication between Livewire components based on events; detect changes in properties of the component class from the view and know the Laravel Livewire JavaScript
Chapter 5 - Creating a DataTable: Filters, search fields, and sorting: In this chapter, we will create filters and search fields for a list taking advantage of the benefits of Livewire, and we will also create sorting fields for the list by columns.
Chapter 6 - Proyects: In this chapter, we'll create several projects to learn more about Livewire's features, such as a To Do List, Alpine.js, a shopping cart, and a blog website.
Chapter 7 - Livewire JavaScript: In this chapter, we will get to know everything that Livewire offers us in JavaScript and combine it with other plugins, we will know the hooks in JavaScript, consume properties, functions and use of events.
Chapter 8 - Livewire Properties: In this chapter, we are going to learn about some extra features of Laravel Livewire properties, such as customizing the update phase of wire:models, such as the use of computed properties.
Chapter 9 - Testing: We will learn how to create unit and integration tests in the application we created earlier using Pest and PHPUnit.
Chapter 10 - Legacy: Characteristics of a Livewire project with Jetstream: In this chapter, we present the characteristics that a project created in Laravel Livewire has; team management, API Tokens, and authentication, are some of them.
By the end of the book, you will have the knowledge to create any basic application with Livewire and know more than just the basics of it.
I invite you to visit my website:
desarrollolibre.net
And get to know my work.
Author
About the Author
Andrés Cruz Yoris, Licenciado en Computación, con más de 10 años de experiencia en el desarrollo de aplicaciones web en general; trabajo con PHP, Python y tecnologías del lado del cliente como HTML, JavaScript, CSS, Vue entre otras; y del lado del servidor como Laravel, Flask, Django y Codeigniter. También desarrollo con Android Studio, xCode y Flutter para la creación de aplicaciones nativas para Android e IOS.
Pongo a tú disposición parte de mi aprendizaje, reflejado en cada una de las palabras que componen mis libros sobre el desarrollo de aplicaciones en general.
Translations
Translations
Languages
Contents
Table of Contents
Get the free Community Edition
You can get the free Community Edition in PDF or EPUB just by sharing your name and email address with the author.
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.