app.php 731 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. use Illuminate\Foundation\Application;
  3. use Illuminate\Foundation\Configuration\Exceptions;
  4. use Illuminate\Foundation\Configuration\Middleware;
  5. $app = Application::configure(basePath: dirname(__DIR__))
  6. ->withRouting(
  7. web: __DIR__.'/../routes/web.php',
  8. api: __DIR__.'/../routes/api.php',
  9. commands: __DIR__.'/../routes/console.php',
  10. health: '/up',
  11. )
  12. ->withMiddleware(function (Middleware $middleware) {
  13. //
  14. })
  15. ->withExceptions(function (Exceptions $exceptions) {
  16. $exceptions->dontReport([
  17. //
  18. ]);
  19. })->create();
  20. $app->singleton(
  21. Illuminate\Contracts\Debug\ExceptionHandler::class,
  22. App\Exceptions\Handler::class
  23. );
  24. return $app;