This guide aims to provide a first step with Laravel 13 Inertia 3. We will cover two key points:
1. While Inertia allows you to work with Svelte or React, this course will focus entirely on the Vue ecosystem, the leading technology for this implementation.
2. We will begin by exploring the Inertia ecosystem to understand its foundations, advantages, and differences compared to a traditional REST API or standard Blade applications.
First Steps: Backend and Frontend Installation and Configuration
Environment: We will understand why using Vue components within Laravel makes so much sense.
Tools: Using modern tools to accelerate development.
2. Introduction to Components and Modern CRUD
We will move directly to hands-on experience with real-world projects. We won't just stay in the realm of theory; we will implement:
* Full CRUD: Creating, reading, updating, and deleting records.
* Advanced Routing: We'll use WhiteFinder's modern routing scheme in the workflow to manage routes efficiently.
* Pagination and Flash Messages: We'll implement pagination components from scratch (since Inertia doesn't include them by default) and manage the persistence of success/error messages in a way that's adapted to Vue.
This book is perfect for those who want to learn something new, for those who want to improve a web development skill, who want to grow as a developer.
* If you identify with at least one of the points mentioned above, this book is for you.
Map
This book has a total of 7 chapters. It is recommended that you read them in the order in which they are presented, and as we explain the framework components, go directly to the practical application, replicating, testing, and modifying the code shown in this book.
Chapter 1 - About Laravel Inertia: In this chapter we will learn about the Laravel Inertia tool and what it offers us when developing web applications.
Chapter 2 - Introduction to the components of Vue and Inertia: In this chapter we are going to create the typical CRUD to learn the basics of Laravel Inertia and its communication with components in Vue.
Chapter 3 - Extend Inertia using Vue Plugins: In this chapter we will install third-party plugins using Vue, specifically the CKEditor and Oruga UI plugins, as local component or global installations.
Chapter 4 - File Upload: In this chapter we will learn about the upload process in Laravel Inertia and also using third-party plugins.
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 Inertia, and we will also create sorting fields for the list by columns.
Chapter 6 - Proyects: In this chapter we are going to create the CRUD process for the posts, taking all the topics covered in the previous chapters.
Chapter 7 - Testing: We will learn how to create unit and integration tests in the application we created previously using PHPUnit.
Chapter 8 - Legacy: Characteristics of an Inertia project with Jetstream: In this chapter we are going to know the characteristics of a project in Laravel Inertia, both the structure that a project brings by default, and its basic operation.