Mapping HTTP Methods to Laravel Routes
When 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 articlePage 5 of 7.
When 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 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 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 articleIn a Laravel application, the storage choice determines whether a browser can fetch a file directly or must ask Laravel to check the request first. Use public storage…
Read articleWhen a Laravel package needs its own database tables, its maintainers must decide how the host application will find the package’s migration files. A migration is a PHP…
Read articleWhen you add HTTP endpoints to a Laravel package, the package must register its routes without relying on the host application's file locations or middleware settings. Middleware is…
Read articleWhen you maintain a Laravel package, a breaking change is an update that makes package users change their code or configuration to keep their integration working. Renaming a…
Read articleIn Laravel, a collection stores items under keys, much like a PHP array. An item can be a full record, such as a product with an ID, name,…
Read articleWhen you review a pull request for a Laravel package, check that the change works for users on every PHP and Laravel version the package supports. A package…
Read articleWhen a client sends a request to a Laravel controller, the request holds the submitted values. Laravel’s validator checks those values against rules you set. After it checks…
Read articleWhen code on a Laravel server calls an external API, the server sends an HTTP request. The request’s headers are named values that tell the receiving server what…
Read article