Tag: Architecture Concepts

Laravel Request Lifecycle

Laravel Service Providers

All services are added to service container using Service Provider. Every service of your application is provided using service provider. Lets open to bootstrap/app.php.We will see below code. $app = new Illuminate\Foundation\Application(     $_ENV[‘APP_BASE_PATH’] ?? dirname(__DIR__) ); If we Ctrl+left mouse click on Application, class Application will open. Here Laravel is binding or registering serviceprovider […]

Architecture Concepts Laravel Request Lifecycle

Request lifecycle of Laravel

We should understand Laravel’s Request lifecycle so that we may interact with/change request/response data or do anything else. First Step Every server, including Apache, that makes a request redirect to the public/ index The index file loads the autoload function and creates an instance of the Laravel application. HTTP/Console kernels Because HTTP/kernels or console kernels […]

Back To Top