wf-laravel-create-api-endpoint-method

Create or update Laravel API endpoints with controllers, routes, and Sanctum abilities.

Updated Nov 7, 2025
One-click install
npx skills add https://github.com/belluga/delphi-ai --skill wf-laravel-create-api-endpoint-method
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wf-laravel-create-api-endpoint-method
Source: https://github.com/belluga/delphi-ai/tree/main/.cline/skills/wf-laravel-create-api-endpoint-method
Command: npx skills add https://github.com/belluga/delphi-ai --skill wf-laravel-create-api-endpoint-method

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add or modify Laravel API endpoints (controller + routes) while honoring the documented route groups, Sanctum abilities, and client contracts defined by Flutter repositories.

Core Features & Use Cases

  • Create or update Laravel API endpoints (controller + routes) in compliance with route groups, tenant/landlord scoping, and Sanctum permissions.
  • Scaffold and enforce deterministic contracts, security controls, and testing workloads as described by foundation documentation and endpoints contracts.
  • Generate necessary service layer hooks, route registrations, and test scaffolds to ensure end-to-end governance and verifiability.

Quick Start

Initiate the workflow to scaffold or update a Laravel API endpoint (controller + routes) following the documented contracts and Sanctum abilities.

Frequently Asked Questions about wf-laravel-create-api-endpoint-method

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Laravel API endpoint that enforces Sanctum abilities and Flutter contracts?

You create a Laravel API endpoint by automating the controller and route generation while enforcing route groups, Sanctum abilities, and Flutter-defined client contracts. This ensures endpoints comply with documented security policies and tenant/landlord scopes.

How do I update existing Laravel routes for tenant and landlord scopes?

Updating existing Laravel routes for tenant and landlord scopes involves modifying route registrations and middleware to align with Sanctum policies. You adjust the endpoint configurations to enforce the correct security and scoping controls required by your updated application architecture.

What is needed to scaffold a Laravel API endpoint with deterministic contracts?

Scaffolding a Laravel API endpoint with deterministic contracts requires foundation documentation modules, project constitution, system roadmap entries, and existing endpoint contracts. These inputs define the route groups, security controls, and testing workloads needed for verifiable code generation.

Does this Laravel API workflow generate test scaffolds automatically?

Yes, this Laravel API workflow generates test scaffolds automatically. It outputs updated code, contracts, and test scaffolds to ensure end-to-end governance and verifiability, covering idempotency and testing requirements as described by the foundation documentation.

Can I use this to add service layer hooks for Laravel API endpoints?

Yes, you can use this to add service layer hooks for Laravel API endpoints. The workflow generates necessary service layer hooks alongside route registrations and test scaffolds to ensure the endpoint integrates correctly with the application's broader architecture.

When should I not use an automated workflow for Laravel API endpoint creation?

You should not use an automated workflow for Laravel API endpoint creation when you lack the required foundation documentation, project constitution, or endpoint contracts. Without these inputs, the workflow cannot enforce the necessary Sanctum policies, scopes, and deterministic testing requirements.