spatie-guidelines
Installation
SKILL.md
Spatie Guidelines
Apply these guidelines when writing code for Spatie projects or contributing to Spatie packages.
Core principle: write things the way Laravel intended. If Laravel has a documented way to do something, use it. Deviate only with a clear justification.
PHP Style
Type System
- Type properties, parameters, and return types. Skip docblocks for fully typed methods.
- Use
?Type(short nullable), notType|null. - Always use the
voidreturn type when a method returns nothing. - Use constructor property promotion when all properties can be promoted. One per line, trailing comma: