php artisan boost:add-skill technicpack/solder
Save this content to: .cursor/rules/php.md
# PHP
- Always use curly braces for control structures, even for single-line bodies.
- Use PHP 8 constructor property promotion: `public function __construct(public GitHub $github) { }`. No empty zero-parameter constructors unless private.
- Use explicit return type declarations and type hints for all method parameters: `function isAccessible(User $user, ?string $path = null): bool`
- TitleCase for Enum keys: `FavoritePerson`, `BestLake`, `Monthly`.
- Prefer PHPDoc blocks over inline comments. Inline comments only for exceptionally complex logic.
- Use array shape type definitions in PHPDoc blocks.
public function __construct(public GitHub $github) { }. No empty zero-parameter constructors unless private.function isAccessible(User $user, ?string $path = null): boolFavoritePerson, BestLake, Monthly.How can I help you explore Laravel packages today?