,

CRUD Application using Laravel 9 and React with Inertia.js, Vite, Laravel Breeze, Login, and Tailwind CSS

Posted by






CRUD Laravel 9 React con Inertia.js | Vite | Laravel Breeze | Login | Tailwind

CRUD Laravel 9 React con Inertia.js | Vite | Laravel Breeze | Login | Tailwind

If you are looking to build a modern web application with Laravel 9, React, Inertia.js, Vite, Laravel Breeze, and Tailwind CSS, you’ve come to the right place. This article will guide you through the process of setting up a CRUD (Create, Read, Update, Delete) application using these technologies.

Setting Up Laravel 9 with React and Inertia.js

First, you’ll need to install Laravel 9 by using the composer command:


composer create-project laravel/laravel my-project

Next, you can use Laravel’s built-in React scaffolding to set up your frontend:


php artisan ui react

To integrate Inertia.js with your Laravel 9 application, you can use the following command:


composer require inertiajs/inertia-laravel

Integrating Vite and Tailwind CSS

Vite is a next-generation build tool that provides a faster and more efficient development experience for frontend projects. You can set up Vite for your Laravel 9 project by following the installation guide on the Vite website.

Additionally, you can integrate Tailwind CSS with your project by following the official documentation on the Tailwind CSS website. This will allow you to easily style your application using the latest utility-first CSS framework.

Implementing Laravel Breeze for Authentication

Laravel Breeze is a minimal and simple starter kit for building Laravel applications with authentication. You can install Laravel Breeze by running the following command:


composer require laravel/breeze --dev

After installing Laravel Breeze, you can use its authentication features to set up user registration, login, and password reset functionality for your application.

Building the CRUD Functionality

With all the necessary components in place, you can start building the CRUD functionality for your application. You can use Laravel’s built-in features such as Eloquent for database interactions, and Inertia.js for rendering the frontend components.

You can create, read, update, and delete data by defining routes, controllers, and views in your Laravel 9 application. Additionally, you can use React components to provide a seamless user interface for interacting with the CRUD operations.

Conclusion

In conclusion, building a CRUD application with Laravel 9, React, Inertia.js, Vite, Laravel Breeze, and Tailwind CSS is a powerful and efficient way to create modern web applications. By following the steps outlined in this article, you can create a fully-featured application with all the necessary components for a seamless user experience.


0 0 votes
Article Rating
14 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Leonardo Gaona
7 months ago

Hola buen video! , a mi no me aparecen los iconos los instale en la terminal, tengo que colocar algo mas?

Vargas Ramirez
7 months ago

Tendrás algún video para el deploy cuando el proyecto tiene integrado react?

Otto René Montoya
7 months ago

tendras algun video o link donde se pueda se agregar a este proyecto un template como AdminLTE

Carlos Rangel
7 months ago

Buen contenido

Gisela Alonso
7 months ago

todo cool pero me estresa la musiquita de juego de hacer helados de fondo

Ivan Sanchez
7 months ago

<NavLink href={route('cars.index')} active={route().current('cars.index')}>

Panel de Control

</NavLink> ………………………………….. me sale error de ruta no definida en cars.index, ayuda

Jhosttyn Medina
7 months ago

Saludos, excelente tutorial, aunque tengo deficultades en la parte de mostrar los datos en la tabla, especificamente al hacer el llamado con la funcion props, me lanza error en la consola del navegador indicando que no esta definida, ahora, revisando en detalle, me di cuenta de que los archivos de los componenentes de react son distintos al del video, particularmente al copiar los datos de Dashboard.jsx a Index.jsx, al definiar la funcion en mi caso el parametro en comillas es auth a diferencia del video que indica props

Que podria hacer en ese caso?

Masum Billal
7 months ago

how to get data without return…..explain plz

Report Mid
7 months ago

Hola Programando, una pregunta, yo quiero cambiar la parte del color y poner disponibilidad y que la parte de abajo sea como un checkbox editable luego. Que codigo tendria que usar estoy un poco confundido

Coding Savid
7 months ago

Solo se pueden hacer SPAs con este método o se puede usar para sistemas más complejos?

HammerPE
7 months ago

Hola, excelente video. Podrías hacer un video igual pero con api hecho en Laravel? Porfaaaa

Duvan Gamboa
7 months ago

pasa el repositorio por favor

Juver Castromonte
7 months ago

Que recomiendas inertia o laravel y react pero por separado?

Betico Hernandez
7 months ago

Que bien.