You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
705 B

  1. <?php
  2. use Illuminate\Foundation\Application;
  3. use Illuminate\Foundation\Configuration\Exceptions;
  4. use Illuminate\Foundation\Configuration\Middleware;
  5. return Application::configure(basePath: dirname(__DIR__))
  6. ->withRouting(
  7. web: __DIR__.'/../routes/web.php',
  8. commands: __DIR__.'/../routes/console.php',
  9. health: '/up',
  10. )
  11. ->withMiddleware(function (Middleware $middleware) {
  12. $middleware->web(append: [
  13. \App\Http\Middleware\HandleInertiaRequests::class,
  14. \Illuminate\Http\Middleware\AddLinkHeadersForPreloadedAssets::class,
  15. ]);
  16. //
  17. })
  18. ->withExceptions(function (Exceptions $exceptions) {
  19. //
  20. })->create();