Laravel Request Lifecycle

1. public/index.php

2. bootstrap/app.php

3. vendor/laravel/framework/src/Illuminate/Foundation/Application.php

handleRequest => vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php

handleCommand => vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php

How to check Laravel health with route

bootstrap/app.php

return Application::configure(basePath: dirname(__DIR__))
    ->withRouting(
        web: __DIR__.'/../routes/web.php',
        commands: __DIR__.'/../routes/console.php',
        health: '/up',
    )
    ->withMiddleware(function (Middleware $middleware) {
        //
    })
    ->withExceptions(function (Exceptions $exceptions) {
        //
    })->create();