Architecture Concepts Laravel Laravel Facades November 28, 2021 Navid Anjum Getting non static function statically is called Facades. Lets set the cache like below in our web route cache()->set('name',"navid"); and get it using dd() dd(cache()->get('name')); Result : “navid” As we…
Laravel Request Lifecycle Laravel Service Providers November 28, 2021 Navid Anjum 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 =…
Laravel Dependency Injection with Laravel Service Container November 26, 2021 Navid Anjum Classes may depend on other classes, Laravel addresses this issue with Reflection Classes, and the service container’s goal is to manage class dependencies through dependency injection. Let’s put it to…
Architecture Concepts Laravel Request Lifecycle Request lifecycle of Laravel November 23, 2021 Navid Anjum 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…