Making Conditional Requests with the Laravel HTTP Client
When PHP code sends a request to an external API, it may need to choose headers, payload fields, or a URL based on values available at runtime, such…
Read articlePage 8 of 14.
When PHP code sends a request to an external API, it may need to choose headers, payload fields, or a URL based on values available at runtime, such…
Read articleWhen Laravel code needs data from another web service, the HTTP client sends an outgoing request and gives your code a response object to inspect. A GET request…
Read articleWhen a Laravel service needs data from several external APIs, it can use Http::pool() to send the HTTP requests together. Laravel starts the requests so their network waits…
Read articleWhen Laravel code stores an upload or report, the selected disk and the path passed to it determine where the file goes. A disk is a named storage…
Read articlePackage maintainers who support older releases need to provide fixes without stopping development of the next release. A package version identifies a published package, such as 2.4.1. A…
Read articleWhen you set up Laravel routes for a page or API, the HTTP method tells Laravel which action the client requests. An HTTP method is a request verb,…
Read articleWhen you publish a Laravel package, users may copy its configuration file into their application and set values that the package reads later. Users rely on those names…
Read articleIn Laravel, route files connect URLs to the code that handles requests. The file where you register a route also determines which default rules Laravel applies. Laravel calls…
Read articleIn a Laravel application, each route tells Laravel which code handles an incoming HTTP request, such as GET /users. A route group puts related route declarations together so…
Read articleLaravel package authors choose how an application loads a package’s service provider. A service provider connects a package to Laravel. It can register services and tell Laravel to…
Read articleIn Laravel, a mailable is a class that defines an email’s content and settings. Your code gives values to the mailable, which exposes selected values to a Blade…
Read articleIn a Laravel store, two purchase requests can both read that one item remains. If each request checks the stock before either updates it, both orders can succeed…
Read article