Skip to content

Commands ​

Prefer a named script over calling a vendor binary. Run PHP scripts with composer and JS scripts with npm run.

PHP ​

CommandUse it to
composer testRun PHPUnit with readable output. Add -- --filter name while iterating.
composer test:parallelRun the whole suite with Paratest. Run it before you push.
composer test:coverageBuild an HTML coverage report in build/coverage.
composer phpstanRun static analysis at level 8.
composer rectorApply automated refactors.
composer style:fixFormat PHP with Pint.
composer switch:l10 to switch:l13Install a specific Laravel major.

Workbench ​

CommandUse it to
composer buildBuild the workbench app.
composer serveBuild it and serve it on ports 8000 and 8001.
composer devRun composer serve and the Vite dev server together.
composer nimbusRun a Testbench command against the workbench.

JavaScript ​

CommandUse it to
npm run style:checkCheck the theme rules and run ESLint.
npm run style:fixApply the ESLint fixes.
npm run check:themeCheck that the theme preset reads tokens only.
npm run type:checkType check with vue-tsc.
npm run test:runRun Vitest once.
npm testRun Vitest in watch mode.
npm run devStart the Vite dev server.

End to end ​

CommandUse it to
npm run test:e2eRun the Playwright specs in tests/E2E. They start or reuse the workbench servers.
npm run test:e2e:uiOpen the Playwright UI.

Generated types ​

CommandUse it to
php bin/intellisenseRegenerate the TypeScript interfaces in resources/js/interfaces/generated. Run it after you change a backend shape that the frontend reads.

Never edit the generated folder by hand.

Build scripts ​

Do not run npm run build or npm run build:dev for a pull request. The release workflow builds and commits resources/dist.

The finalize task skill covers which checks to run for a given change.