Before 5.2 the HTTP kernel had one global middleware stack, so anything needed by web routes also ran for API routes — sessions, CSRF verification and cookie encryption…
Checking what a relation actually returns usually means writing a throwaway route, hitting it, and deleting it — or adding a dd() somewhere and reloading. Both are slower…
The container resolves concrete classes automatically, which is convenient enough that most code type-hints the concrete class and the abstraction never happens. Contextual binding is the part worth…
The same three conditions appear in nine controllers, and when the definition of “active” changes there are nine places to edit and one that gets missed. The naming…
chunk() paginates with OFFSET, so if the loop body changes whether a row still matches the query, the offset for the next page has shifted and rows get…
Eloquent fires saving, created, deleted and the rest when a model instance is saved. A mass update or delete goes straight to the query builder and fires nothing…