composer require and a single Artisan command (livewire:doctor), with no database migrations or config overrides.@js imports) may necessitate regression testing of affected components post-deployment.livewire:doctor execution (though likely negligible for CI/CD).livewire:doctor run in pre-commit hooks, PR checks, or deployment gates? What’s the acceptable false-positive rate?php artisan livewire:doctor:scan to assess false positives..livewiredoctorc config if needed.- name: Livewire Doctor
run: php artisan livewire:doctor:scan --fix --dry-run
@vite() directive handling.@click/@model directives (test thoroughly).| Phase | Action | Tools/Dependencies |
|---|---|---|
| Assessment | Run livewire:doctor:scan --dry-run in a clone of production. |
Git, Docker (if applicable) |
| Customization | Extend rules via config/livewiredoctorc.php or custom commands. |
PHP, Livewire internals |
| CI Integration | Add to pipeline with --fix flag (or --dry-run for safety). |
GitHub Actions/GitLab CI |
| Monitoring | Track false positives/negatives in a project issue tracker. | Jira/GitHub Issues |
| Enforcement | Enforce in PR checks or pre-deployment gates. | Branch protection rules |
@js imports).--fix flag automates corrections, but review changes for edge cases.--fix to senior devs to avoid unintended merges.| Risk | Impact | Mitigation |
|---|---|---|
| False Fixes | Breaks custom component logic. | Use --dry-run first; review diffs. |
| Asset Pipeline Conflicts | Vite/Webpack builds fail. | Exclude resources/js/ from scans. |
| Livewire Version Mismatch | Fixes break in newer Livewire. | Pin Livewire version in composer.json. |
| CI Timeouts | Scan exceeds pipeline limits. | Run in a separate job or cache results. |
@js, stale $listeners).How can I help you explore Laravel packages today?