Blade templating with Laravel 9
Laravel is a robust PHP web framework for building dynamic web applications. The powerful templating engine blade is provided by Laravel. With Laravel 9, released in January 2022, comes a…
Laravel is a robust PHP web framework for building dynamic web applications. The powerful templating engine blade is provided by Laravel. With Laravel 9, released in January 2022, comes a…
A means for inspecting and filtering HTTP requests coming into our application is provided by middleware. Creating a new middleware Php artisan make:middleware TestMiddleware Middleware is classified into three categories.…
Every controller class extends Laravel’s Base Controller class. Basic Controller We can code all functional elements, as well as communicate with the model in the controller and provide data to…
Except for a URI and closure, a basic Laravel route is empty. Route::get(‘/route’,function(){ Return “Something”; }) Routes for the web interface are defined in web.php And API routes are defined…
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 =…
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…