Home / Market / laravel development workflow

laravel development workflow

Build and fix existing Laravel applications through root-cause diagnosis, repository-native implementation, regression coverage, and risk-based verification.

skill★ 508340 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: laravel-development-workflow description: "Build and fix existing Laravel applications through root-cause diagnosis, repository-native implementation, regression coverage, and risk-based verification." category: development risk: critical source: community source_repo: Junaid-PK/laravel-development-workflow source_type: community date_added: "2026-09-02" author: Junaid-PK tags: [laravel, php, debugging, testing, development] tools: [claude, codex, cursor, gemini] license: "MIT" license_source: "https://github.com/Junaid-PK/laravel-development-workflow/blob/main/LICENSE"

---

Laravel Development Workflow

Make the requested Laravel behavior correct, maintainable within the existing application, and supported by evidence that matches the change's risk.

When to Use

Establish the Contract

Before editing:

Scale the analysis to the task. A focused validation fix does not need the same ceremony as a new multi-role workflow.

Fix Bugs at the Cause

For a bug:

  1. Reproduce the failure through the narrowest reliable path.
  2. Trace the data and control flow to the actionable root cause.
  3. Add or update a regression test that fails for that cause when practical.
  4. Implement the smallest fix that restores the intended invariant.
  5. Demonstrate that the regression test passes and that nearby behavior still works.

Do not substitute retries, broad exception handling, disabled validation, extra timeouts, or error suppression for a root-cause fix. If the failure cannot be reproduced locally, state what evidence is missing and use the strongest available static or targeted verification.

Build Features in the Existing Shape

Create factories, seeders, fixtures, or a disposable command only when realistic data is needed for development or durable test coverage. Do not leave one-off scaffolding in the product solely to exercise a small change.

Verify Proportionately

Discover the project's supported commands from its configuration and documentation. Prefer this order:

  1. Run the narrowest affected test or reproduce the original failure.
  2. Run the relevant feature, unit, or integration test group.
  3. Run static analysis, formatting, and linting configured by the repository.
  4. Run the broader suite when the change's reach or project policy warrants it.

Cover the critical observable behavior, including the happy path and whichever edge cases, validation rules, permissions, database effects, events, notifications, jobs, or API contracts are actually affected. Avoid tests that only mirror implementation details.

Common commands may include:

php artisan test --filter=RelevantTest
vendor/bin/pest --filter=RelevantTest
vendor/bin/phpstan analyse
vendor/bin/pint --dirty

Use the commands the project provides; do not install or configure tools merely because they appear in this example.

Preserve the User's Environment

Completion Evidence

Before handing off, verify each acceptance criterion against current behavior. Report:

Do not claim completion from code inspection alone when executable verification is available.

Limitations