Nuxt JS CRUD – Complete Nuxt CRUD using Laravel API from Scratch Tutorial
Nuxt.js is a progressive JavaScript framework that is used to build modern web applications. In this tutorial, we will be covering the basics of Nuxt.js CRUD operations using a Laravel API. CRUD stands for Create, Read, Update, and Delete, which are the basic operations used in database management. We will be building a simple application that can perform these CRUD operations using Nuxt.js and Laravel API.
Prerequisites
- Basic knowledge of HTML, CSS, and Javascript
- Understanding of Nuxt.js and Laravel
- Node.js and NPM installed on your system
- Composer installed on your system
Setting up Nuxt.js project
To get started, we need to create a new Nuxt.js project. Open your terminal and run the following command:
npx create-nuxt-app nuxt-crud
Follow the instructions and select the features you want to include in your project. Once the project is created, navigate into the project directory and start the development server by running the following command:
cd nuxt-crud
npm run dev
Creating Laravel API
Now that we have our Nuxt.js project set up, we need to create a Laravel API for our CRUD operations. Open a new terminal window and run the following command to create a new Laravel project:
composer create-project --prefer-dist laravel/laravel api
Once the Laravel project is created, navigate into the project directory and start the development server by running the following command:
cd api
php artisan serve
Implementing CRUD Operations
With both the Nuxt.js and Laravel API set up, we can now start implementing our CRUD operations. We will create components in Nuxt.js for Create, Read, Update, and Delete operations, and then connect them to the corresponding API endpoints in the Laravel project.
For a step-by-step guide on implementing CRUD operations using Nuxt.js and Laravel API, please refer to the full tutorial on the link below:
can you teach Authen login + register?
Your teaching method is awesome and very clearly explained. Please make more videos on Nuxt 3 like Auth, best practices, tips, with different libraries, advance topics, payments integration, FireBase, Dashboard etc.
Please show hpw cam we store student profile picture also with other details im same form
any other nuxt tutorials?
please add image file field sir
Sir can u make a video about how Laravel Authentication (e.g., Breeze) with Nuxt3, on how does it work ? 🤗🤗😄😄
Thank you very much, really nice step by step tutorial, nicely explained ! I even checked the laravel one to learn it all
Thanks Sir, keep uploading.