Static: Not changing at runtime. A static site is pre-generated HTML/CSS/JS served without a backend. A static variable belongs to the class rather than an instance. Static means something that does not change at runtime. A static website consists of pre-built HTML, CSS and JavaScript files, served as they are, without a server-side application generating each page.
Static sites are fast, cheap to host and have a very small attack surface. Site generators such as Astro, Hugo and Eleventy build them from content files.
What should you keep in mind with Static?
In programming, a static variable or method belongs to the class itself rather than to an instance. Static methods are fine for small helpers, but static state shared across the whole application behaves like global state, with the same risks. In long-running PHP processes like queue workers or Octane, static properties survive between jobs or requests, so data from one user can leak into another's request if you are not careful.
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.