LaraflareDocsFrameworkPackagesReleases13.x

Docs / Prologue / Contribution Guide

Contribution Guide

Bug Reports

To encourage active collaboration, Laraflare strongly encourages pull requests that address problems. If you discover a problem, please create a pull request that addresses the problem. Your pull request should contain a title and a clear description of the problem and its solution, and name the upstream file and method the fix follows. You should also include a test that demonstrates the issue: where the upstream framework has a test for the behavior, port that test rather than writing a new one. The goal of a pull request is to make it easy for yourself - and others - to understand the problem and verify the fix.

If you do not know how to fix the problem, open a "Bug report" issue instead, with the Laraflare version and the smallest code or test that shows what happened and what you expected.

Every pull request is checked by GitHub Actions: the typecheck, the build, the tests of each package it changes, and, for a ported file, port:check against the file it follows. A pull request is reviewed once the checks pass, and is merged with your commits. Keep each one to a single port (one upstream file, or one class and its test), so it is checked and reviewed on its own.

The Laraflare source code is managed on GitHub:

  • Laraflare Framework: the framework, its packages, the application and the starter kits. Send every pull request here.
  • Laraflare Application: the application a new project starts from, published from the framework repository's packages/framework/skeleton.
  • Laraflare Vue Starter Kit: the Vue starter kit, published from the framework repository's packages/framework/starter-kits/vue.

Most help is porting: bringing one more file of the framework, or of one of its first-party packages, across with its tests. The framework repository's CONTRIBUTING.md explains how to claim a package, port it file for file and check it. A package by another author is ported in a repository of your own; open a pull request adding it to scripts/package-ports.json to have it listed.

Support Questions

Laraflare's GitHub issue trackers are not intended to provide Laraflare help or support. Issues are for bug reports and for claiming or requesting a port. For help using Laraflare, start with the documentation.

Which Branch?

All pull requests, bug fixes and new features alike, should be sent to the main branch of laraflare/framework.

Laraflare is before 1.0, so fixes are released as a new version of each package, not backported to older releases.

Compiled Assets

If you are submitting a change that will affect a compiled file, such as a package's dist directory or the built assets of the application or a starter kit, do not commit the compiled files. Due to their large size, they cannot realistically be reviewed by a maintainer. This could be exploited as a way to inject malicious code into laraflare. In order to defensively prevent this, all compiled files will be generated by Laraflare's build.

Security Vulnerabilities

If you discover a security vulnerability within Laraflare, please don't report it in a public issue. Report it privately instead: on the laraflare/framework repository's Security tab, choose Report a vulnerability. Only the maintainers see it. You'll get an answer, and a fix will be released as soon as it is ready, with credit to you unless you'd rather not.

Security fixes are released for the latest release of each package.

Coding Style

Laraflare is written in TypeScript, checked with strict mode, noUnusedLocals and noUnusedParameters; npx tsc --noEmit must be clean for every pull request. Code is ES modules.

A ported file keeps its upstream file's path, class and public methods: Sanctum's src/Guard is packages/sanctum/src/Guard.ts, and its test file tests/Feature/GuardTest is packages/sanctum/tests/Feature/GuardTest.ts, with the same test names and the same expected values. A test that can't apply here is kept and marked with why, never dropped. Shared behavior is a mixin, because TypeScript has no traits.

Doc Comments

Below is an example of a valid Laraflare documentation block. The types are written in the TypeScript signature, not in the comment, so most comments are a single line:

/** Register a binding with the container. */
bind(abstract: Abstract, concrete: Concrete = null, shared = false): void {
  // ...
}

A longer comment is written over several lines, and may say what the method throws:

/**
 * Concurrently resolve the given callbacks via background tasks, returning the results.
 *
 * Results will be keyed by their given keys - if a task did not finish, the tasks value will be "false".
 *
 * @throws TaskException
 * @throws TaskTimeoutException
 */
async concurrently(tasks: Record<string, Task> | Task[], waitMilliseconds = 3000): Promise<Record<string, unknown> | unknown[]> {
  // ...
}

Where a file differs from the file it follows (because a Worker or TypeScript can't do the same thing), a comment at the top of the file says how, and why.

Code of Conduct

Laraflare is for everyone who wants to build with it or help it grow. These apply in the repositories, their issues and discussions, and anywhere you represent the project. Anything that breaks them can be reported to the maintainers through GitHub's report button on the comment or account, or by opening a private security advisory if it can't be public:

  • Participants will be kind, patient and welcoming, to newcomers most of all.
  • Participants will assume good faith, and disagree about code, never about people.
  • Harassment, insults, personal attacks, or unwelcome attention of any kind will not be tolerated.
  • Participants will keep private things private: never share someone's personal information without their permission.
© 2026 Hugh Smith. Adapted from Laravel's documentation, Copyright (c) Taylor Otwell, used under the MIT License.