spatie/boost-spatie-guidelines
AI-optimized Spatie coding guidelines for Laravel Boost. Installs battle-tested Laravel & PHP standards into your .ai/guidelines folder so AI assistants generate PSR-compliant, convention-driven code (types, naming, control flow, testing) automatically.
laravel-permission, laravel-activitylog). For non-Spatie Laravel projects, it introduces consistency but may require minor adjustments to existing codebases.php artisan boost:install, requiring minimal setup. No database migrations or complex configurations.--dev package, avoiding production bloat.composer require laravel/boost --dev
php artisan boost:install
Select spatie/boost-spatie-guidelines during setup.@foreach vs. @forelse). Review for conflicts.composer update..ai/guidelines configs).| Failure Mode | Impact | Mitigation |
|---|---|---|
| AI generates non-compliant code | Manual review overhead increases. | Use Boost’s boost:review to validate output. |
| Boost compatibility issues | Workflow disruptions. | Pin Boost to a stable version. |
| Guideline conflicts | Codebase divergence. | Override specific rules via Boost’s config. |
| Team resistance to AI workflow | Low adoption. | Pilot with willing teams; demonstrate ROI. |
# .github/workflows/boost-check.yml
jobs:
boost-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: composer require laravel/boost --dev
- run: php artisan boost:check # Hypothetical command; verify with Boost
How can I help you explore Laravel packages today?