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:
13
package.json
13
package.json
@@ -7,11 +7,18 @@
|
||||
"dev": "vite"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/vite": "^4.0.0",
|
||||
"@tailwindcss/vite": "^4.2.1",
|
||||
"autoprefixer": "^10.4.27",
|
||||
"axios": "^1.11.0",
|
||||
"concurrently": "^9.0.1",
|
||||
"laravel-vite-plugin": "^2.0.0",
|
||||
"tailwindcss": "^4.0.0",
|
||||
"vite": "^7.0.7"
|
||||
"tailwindcss": "^4.2.1",
|
||||
"vite": "^7.3.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@inertiajs/react": "^2.3.18",
|
||||
"@vitejs/plugin-react": "^4.7.0",
|
||||
"react": "^19.2.4",
|
||||
"react-dom": "^19.2.4"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user