dare-laravel-api

Standardize Laravel 11 RESTful APIs with layered architecture and strict typing.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/darelabs-tech/dare-cli --skill dare-laravel-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dare-laravel-api
Source: https://github.com/darelabs-tech/dare-cli/tree/main/.agents/skills/dare-laravel-api
Command: npx skills add https://github.com/darelabs-tech/dare-cli --skill dare-laravel-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates architectural drift and inconsistent code quality in Laravel projects by enforcing a strict, layered design pattern that separates business logic from HTTP concerns.

Core Features & Use Cases

  • Layered Architecture: Enforces separation of concerns using Controllers, Services, Repositories, and Resources.
  • Strict Typing & Quality: Mandates strict types, PHPStan level 8 analysis, and Pest testing for robust, maintainable codebases.
  • Use Case: Use this skill to bootstrap a new API project or refactor an existing legacy Laravel application to meet modern PHP 8.3 and Laravel 11 standards.

Quick Start

Use the dare-laravel-api skill to generate a new service and repository pair for a user registration feature following the DARE layered design pattern.

Frequently Asked Questions about dare-laravel-api

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

FAQPage Schema
How do I enforce strict layered architecture in a Laravel 11 API?

Enforcing strict layered architecture in a Laravel 11 API involves separating business logic from HTTP concerns using Controllers, Services, Repositories, and Resources. This standardizes RESTful API development and prevents architectural drift in PHP 8.3 applications.

What is the best way to refactor a legacy Laravel application to modern PHP 8.3 standards?

The best way to refactor a legacy Laravel application to modern PHP 8.3 standards is enforcing strict type-hinting, repository-based data access, and FormRequest validation. This mitigates inconsistent code quality and ensures high performance and maintainability.

Does Laravel 11 API development require PHPStan level 8 analysis and Pest testing?

Laravel 11 API development requires PHPStan level 8 analysis and Pest testing to guarantee robust, maintainable codebases. Mandating strict types alongside these automated tests prevents architectural drift and ensures high performance.

How do I bootstrap a new RESTful API service in Laravel 11?

To bootstrap a new RESTful API service in Laravel 11, generate a new service and repository pair following a layered design pattern. This mandates strict type-hinting and FormRequest validation to ensure high performance and maintainability.

Can I use repository-based data access for Laravel 11 RESTful APIs?

You can use repository-based data access for Laravel 11 RESTful APIs to separate data access logic from business rules. This approach satisfies requirements for layered architecture and ensures strict separation of concerns in PHP 8.3 applications.

Why does my Laravel API suffer from architectural drift and inconsistent code quality?

A Laravel API suffers from architectural drift and inconsistent code quality when strict separation of concerns is not enforced. Applying a standardized layered design pattern with Controllers, Services, and Repositories eliminates this drift and maintains codebase robustness.