Add Inertia.js support and middleware configuration

- Updated composer.json to include inertiajs/inertia-laravel dependency.
- Modified app.php to register HandleInertiaRequests middleware.
- Updated package.json with new dependencies for React and Vite.
- Enhanced vite.config.js to include React plugin.
- Created HandleInertiaRequests middleware for Inertia.js integration.
This commit is contained in:
2026-03-17 19:06:01 +07:00
parent 02c8c9ee88
commit 1dd800bcee
5 changed files with 63 additions and 3 deletions

View File

@@ -7,6 +7,7 @@
"license": "MIT",
"require": {
"php": "^8.2",
"inertiajs/inertia-laravel": "^2.0",
"laravel/framework": "^12.0",
"laravel/tinker": "^2.10.1"
},