Stateless: A system that does not retain information about previous interactions. Each request is treated independently. REST APIs are stateless by design. A stateless system keeps no memory of previous requests. Every request carries everything needed to handle it, such as an authentication token and the relevant parameters. Stateless web servers are easy to scale and replace. Any server can handle any request, so you can add servers under load or restart one without users noticing. REST APIs are designed this way.
Applications still have state, of course: logged-in sessions, shopping baskets, uploads. The trick is keeping it out of the individual server, in a database, Redis or object storage that all servers share. A server that stores sessions in its own memory or files on its own disk breaks this, and users get logged out when their next request lands on another server.
Apply Spatie's Laravel and PHP coding standards for any task that creates, edits, reviews, refactors, or formats Laravel/PHP code or Blade templates; use for controllers, Eloquent models, routes, config, validation, migrations, tests, and related files to align with Laravel conventions and PSR-12.
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or when debugging dependency cycles between application layers.