Facade: Provide a simplified interface to a complex subsystem — hide internal complexity behind a single, clean surface. The Facade pattern offers one simple interface to a complicated set of classes. Instead of coordinating five services yourself, you call one method that does it for you. An OrderFacade might offer placeOrder(), which checks stock, reserves items, charges the payment and sends a confirmation. The calling code stays short and does not need to know the details.
In Laravel, "facade" means something slightly different: static-looking classes like Cache::get() that forward calls to services in the container. They are convenient, but they hide dependencies, so some teams prefer injecting the service explicitly. Either way, a facade should simplify, not hide problems. If it grows into a class that does everything, split it by task.
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.