Laravel Tooling
SKILL.md
Laravel Tooling
Priority: P2 (MEDIUM)
Structure
project/
├── app/Console/ # Custom Artisan commands
├── resources/js/ # Frontend assets (Vite)
└── pint.json # Code styling
Implementation Guidelines
- Artisan Focus: Build custom commands for repetitive tasks.
- Vite Integration: Use
@vitedirective for CSS/JS bundling. - Pint Styling: Enforce Laravel style standard automatically.
- Background Jobs: Use Horizon for monitoring Redis queues.
- Blade Components: Encapsulate UI into
@componentor<x-comp>. - Caching: Prune/refresh caches via
optimize:clear.
Anti-Patterns
- Mix Usage: No Laravel Mix: Migrate to Vite for faster HMR.
- Raw JS: No JS in Blade: Move to
resources/js. - Manual CLI: No manual DB edits: Use Artisan or migrations.
- Unformatted Code: No unstyled merge: Run
pintbefore commit.