be-laravel

Implement Laravel 11 backend APIs with Eloquent, Form Requests, and PHPUnit tests.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/MassimilianoPili/agent-framework --skill be-laravel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: be-laravel
Source: https://github.com/MassimilianoPili/agent-framework/tree/main/.claude/agents/be-laravel
Command: npx skills add https://github.com/MassimilianoPili/agent-framework --skill be-laravel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the development of backend APIs and business logic for PHP/Laravel 11 applications, ensuring adherence to modern coding standards and best practices.

Core Features & Use Cases

  • API Implementation: Develop controllers, routes, and Eloquent models for RESTful APIs.
  • Validation & Transformation: Implement Form Requests for validation and API Resources for response formatting.
  • Testing: Write comprehensive PHPUnit tests for feature and unit coverage.
  • Use Case: Implement a new /api/users endpoint including model, controller, form request for creation, and API resource for output, along with feature tests.

Quick Start

Use the be-laravel skill to implement the User CRUD API endpoints based on the provided OpenAPI contract.

Frequently Asked Questions about be-laravel

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

FAQPage Schema
How do I build a Laravel 11 RESTful API with Eloquent models and controllers?

To implement a Laravel 11 RESTful API, this Skill generates controllers, routes, and Eloquent models following contract-first development. It structures your backend business logic using PHP 8.3+ to ensure high code quality and maintainability.

What is the best way to handle API request validation and response formatting in Laravel?

The best way to handle API request validation and response formatting is using Laravel Form Requests for input validation and API Resources for output transformation. This Skill implements both to ensure secure and consistent API responses.

How do I write PHPUnit feature and unit tests for a Laravel backend API?

You write PHPUnit tests for a backend API by generating comprehensive feature and unit test coverage. This Skill creates PHPUnit tests alongside your controllers and models, ensuring your API endpoints function correctly and maintain expected behavior.

Does this API implementation approach support contract-first development in Laravel 11?

Yes, this API implementation approach supports contract-first development in Laravel 11. It adheres to contract-first principles and security best practices, allowing you to implement User CRUD endpoints based directly on a provided OpenAPI contract.

Can I use this to generate a complete CRUD endpoint with models, validation, and tests?

Yes, you can use this to generate a complete CRUD endpoint. It creates the Eloquent model, controller, Form Request for validation, API Resource for output, and PHPUnit feature tests, delivering a fully functional and tested API implementation.