laravel/nova-devtool
Laravel Nova Devtool streamlines Nova component development with a Workbench-based Nova install, optional auto-login, and commands to install common JS deps. Easily enable/disable Vue Devtools in Nova and upgrade from Nova 4 with a generic Mix extension.
--dev install, single CLI command for setup). No invasive changes to existing Nova projects.NovaServiceProvider, reducing boilerplate for new components.enable-vue-devtool/disable-vue-devtool), allowing teams to disable it post-development.install command auto-updates package.json, which could lead to unintended dependency bloat if not monitored. Teams should review changes post-installation.Team Maturity with Nova:
Frontend Development Needs:
nova.mix.js replacement may require migration testing.CI/CD and Deployment:
install command may need integration with existing workflows.Long-Term Maintenance:
Alternatives Assessment:
Assessment Phase:
Installation:
composer require --dev laravel/nova-devtool
npm install --save-dev @laravel/nova-devtool
php vendor/bin/testbench nova:devtool setup
webpack.mix.js to use laravel-nova-devtool (as shown in the Upgrading from Nova 4 section).Dependency Setup:
php vendor/bin/testbench nova:devtool install
package.json for unexpected dependencies and prune if needed.Frontend Tooling:
php vendor/bin/testbench nova:devtool enable-vue-devtool
php vendor/bin/testbench nova:devtool disable-vue-devtool
CI/CD Integration:
- run: npm install
- run: php vendor/bin/testbench nova:devtool enable-vue-devtool
- run: npm run dev
| Component | Compatibility Notes |
|---|---|
| Laravel Nova | 5.1–6.x (explicit support); 4.x (limited, manual migration needed). |
| Laravel | 10–13 (official); 8–9 (may work with testing). |
| Webpack | 5.x (explicitly tested); 4.x (may require config tweaks). |
| Vue.js | 3.x (Nova’s default); DevTools toggle works with Vue 3. |
| Orchestra Workbench | Required for sandboxing; optional for direct integration. |
| PHPStan/PHPUnit | Supports PHPStan 2; no conflicts with PHPUnit. |
Phase 1: Pilot Project
Phase 2: Team Adoption
Phase 3: Full Integration
Phase 4: Optimization
npm ls and composer why-not to audit dependencies after nova:devtool install.npm ci) to avoid version drift.testbench.yaml and workbench directory in version control.| Issue | Mitigation |
|---|---|
| Webpack 5 compilation errors | Run php vendor/bin/testbench nova:devtool install again. |
| Vue DevTools not loading | Clear browser cache or check webpack.mix.js integration |
How can I help you explore Laravel packages today?