app.php 753 B

123456789101112131415161718192021222324
  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. ->withCommands([
  12. \App\Module\Test\Commands\TestCommands::class
  13. ])
  14. ->withMiddleware(function (Middleware $middleware) {
  15. //
  16. $middleware->validateCsrfTokens(except: [
  17. '*'
  18. ]);
  19. })
  20. ->withExceptions(function (Exceptions $exceptions) {
  21. //
  22. })->create();