Files
finance_app/bootstrap/app.php
henry yo 92b2fef3e0
All checks were successful
Laravel-Oracle-Deploy / redeploy (push) Successful in 10s
fix: change config
2026-06-25 21:09:21 +08:00

31 lines
949 B
PHP

<?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Illuminate\Support\Facades\Route;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
api: __DIR__.'/../routes/api.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
apiPrefix: 'v1',
then: function () {
Route::middleware('web')
->group(base_path('routes/auth.php'));
}
)
->withMiddleware(function (Middleware $middleware): void {
$middleware->web(append: [
\App\Http\Middleware\HandleInertiaRequests::class,
\Illuminate\Http\Middleware\AddLinkHeadersForPreloadedAssets::class,
]);
//
})
->withExceptions(function (Exceptions $exceptions): void {
//
})->create();