🧩 Laravel JSON CRUD Operations
This project demonstrates how to perform simple CRUD (Create, Read, Update, Delete) operations on a JSON column using Laravel’s web routes, controllers, and Blade views. Instead of storing multiple fields separately, the project stores user information inside a single JSON field and provides UI-based CRUD functionality.
🚀 Features
-
Add JSON data through a form
-
Display JSON values in a table
-
Edit & update stored JSON values
-
Delete specific JSON keys or complete records
-
Simple & clean UI using Blade
-
Automatic JSON casting in Eloquent
-
Validation included for form inputs
📦 Project Installation
1️⃣ Clone the Repository
git clone https://github.com/NareshG375/laravel-json-crud.git
cd your-repo-name
2️⃣ Install Laravel Dependencies
composer install
cp .env.example .env
Update your .env file:
DB_DATABASE
DB_USERNAME
DB_PASSWORD
4️⃣ Generate Application Key
php artisan key:generate
5️⃣ Run Database Migrations
php artisan migrate
6️⃣ Start the Laravel Development Server
php artisan serve
Your project will now run at: http://127.0.0.1:8000
🧰 Technologies Used
1.Laravel Framework 12.x & PHP: 8.2+
2.Blade Template Engine
3.Eloquent ORM
4. MySQL JSON Column
5. Laravel Validation
🎯 Who This Project Is For
-
Beginners learning Laravel CRUD
-
Students practicing JSON-based storage
-
Developers wanting dynamic metadata storage
-
Anyone exploring MySQL JSON columns