Skip to main content

← API Reference · Back to README

Development

Package checks​

Install the PHP dependencies:

composer install

Run the test suite or generate coverage:

composer test
composer test:coverage

Apply the configured code style:

composer style

The Pest suites cover different contracts:

SuiteCoverage
tests/FeatureDefaults, overrides, deletion, missing data, and ownership
tests/Unit/CastsDefault JSON, custom casts, morph maps, and Laravel Data
tests/Unit/KeyTypesString, integer, backed enum, and pure unit enum keys
tests/Unit/PrimaryKeyTypesInteger, string, UUID, and ULID parent identifiers
tests/Unit/QueryCountRead and write query counts, including eager loading
tests/ArchitectureNamespace, type, strictness, and Laravel architecture rules

Documentation checks​

The Docusaurus site requires Node.js 20 or newer. Install its dependencies from the docs directory:

npm ci
TaskCommand
Start the local sitenpm run start
Check TypeScriptnpm run typecheck
Check translationsnpm run check:i18n
Create a production buildnpm run build

The production build validates internal links for every configured locale.

Keep documentation pages in docs/docs. Each page uses front matter for sidebar order, a navigation line at the top, relative links between guides, and a See Also section at the end.

Keep each non-default locale in docs/i18n/<locale>/docusaurus-plugin-content-docs/current. Every locale must contain the same page paths as docs/docs. The npm run check:i18n command enforces this before a production build.

Contributing​

Follow the contribution guide before opening a pull request.

Security​

Report security issues privately to [email protected].

Credits​

Created by Andrey Helldar and the project contributors.

See Also​