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

@@ -12,6 +12,9 @@ return Application::configure(basePath: dirname(__DIR__))
)
->withMiddleware(function (Middleware $middleware): void {
//
$middleware->web(append: [
\App\Http\Middleware\HandleInertiaRequests::class,
]);
})
->withExceptions(function (Exceptions $exceptions): void {
//