laravel-enterprise

laravel-enterprise is a skill for Claude Code, Codex from iamBrzDev/enterprise-agent-skills. It costs 83 tokens per session (1,090 once invoked), scanned A, original, MIT.

A guide for organizing Laravel applications with thin controllers, dedicated validation, service classes, repository interfaces, and formatted API responses.

In plain words
What is it for?
Use it to build or refactor Laravel APIs, validate requests, design service and repository layers, convert data to API resources, and handle exceptions consistently.
Why use it?
It helps keep request handling, business rules, database access, and response formatting separate as an application grows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build or refactor Laravel APIs, validate requests, design service and repository layers, convert data to API resources, and handle exceptions consistently.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iambrzdev/enterprise-agent-skills/laravel-enterprise
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add iamBrzDev/enterprise-agent-skills --skill laravel-enterprise
Clone the repo
git clone --depth 1 https://github.com/iamBrzDev/enterprise-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for laravel-enterprise

README.md
[![agentmods](https://agentmods.dev/badge/skills/iambrzdev/enterprise-agent-skills/laravel-enterprise/github.svg)](https://agentmods.dev/skills/iambrzdev/enterprise-agent-skills/laravel-enterprise)
Your own site
<a href="https://agentmods.dev/skills/iambrzdev/enterprise-agent-skills/laravel-enterprise"><img src="https://agentmods.dev/badge/skills/iambrzdev/enterprise-agent-skills/laravel-enterprise/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for laravel-enterprise

Your own site · 80×15
<a href="https://agentmods.dev/skills/iambrzdev/enterprise-agent-skills/laravel-enterprise"><img src="https://agentmods.dev/badge/skills/iambrzdev/enterprise-agent-skills/laravel-enterprise.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,090 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.01090
Opus 5 $0.00042 $0.00545
Sonnet 5 $0.00017 $0.00218
Haiku 4.5 $0.00008 $0.00109

Measured 2d ago against content hash b2cbac4699d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

laravel-enterprise scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/laravel-enterprise/SKILL.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to activate

  • Creating a new Laravel API or module
  • "How do I structure this in Laravel?"
  • Refactoring a fat controller
  • Designing or implementing the service layer
  • Implementing Repository pattern in Laravel
  • Any mention of Laravel architecture, Eloquent best practices, or team-scale structure

Project Structure

app/
├── Http/
│   ├── Controllers/Api/V1/       # Thin controllers only
│   ├── Requests/Order/           # All validation lives here
│   └── Resources/                # All response shaping lives here
├── Services/                     # All business logic lives here
├── Repositories/
│   ├── Contracts/                # Interfaces
│   └── Eloquent/                 # Implementations
├── DTOs/
└── Exceptions/

The Layering Rule

Request → FormRequest → Controller → Service → Repository → Eloquent

Never skip layers. Never call Eloquent directly from a Controller.

Controllers — Always thin

// ✅ Correct
class OrderController extends Controller
{
    public function __construct(private OrderService $service) {}

    public function store(CreateOrderRequest $request): JsonResponse
    {
        $order = $this->service->create($request->toDTO());
        return response()->json(new OrderResource($order), 201);
    }
}

// ❌ Fat controller
class OrderController extends Controller
{
    public function store(Request $request): JsonResponse
    {
        $request->validate([...]);
        $order = Order::create($request->all());
        return response()->json($order);
    }
}

Form Requests — All validation here

class CreateOrderRequest extends FormRequest
{
    public function rules(): array
    {
        return [
            'customer_id'        => ['required', 'integer', 'exists:customers,id'],
            'items'              => ['required', 'array', 'min:1'],
            'items.*.product_id' => ['required', 'integer', 'exists:products,id'],
            'items.*.quantity'   => ['required', 'integer', 'min:1'],
        ];
    }

    public function toDTO(): CreateOrderDTO
    {
        return new CreateOrderDTO(
            customerId: $this->integer('customer_id'),
            items: $this->collect('items')->toArray(),
        );
    }
}

Read the full file on GitHub · 167 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +12 lines b2cbac4699d4
  2. 11d ago First seen · 155 lines · 83 tokens per session scan A 36e1fecac2f1

Subscribe to this mod's changes

laravel-enterprise is a skill published in the GitHub repository iamBrzDev/enterprise-agent-skills (5 stars, last pushed 2d ago), licensed MIT. It adds 83 tokens to every session and 1,090 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

laravel-specialist

Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…

Jeffallan/claude-skills · 86 tokens

create-powergrid-plugin

Create a complete PowerGrid plugin from scratch, including PHP class, Column macro, Blade view, Alpine.js component, and registration.

Power-Components/livewire-powergrid · 31 tokens

owl-admin-devtools-generator

A development guide for Owl Admin, a Laravel-based administration system, covering its code generator, API templates, relationships, and visual pages.

slowlyo/owl-admin · 82 tokens

llamaindex-development

Expert guidance for LlamaIndex development including RAG applications, vector stores, document processing, query engines, and building production AI applications.

Mindrally/skills · 32 tokens

craftcms

Craft CMS 5 plugin and module development — extending Craft with PHP. Covers elements, element queries, services, models, records, controllers, migrations, queue jobs, console commands, field types, native fields, events, behaviors, Twig extensions, widgets, filesystems, permissions, project config, GraphQL, testing…

michtio/craftcms-claude-skills · 327 tokens

laravel-expert

Laravel & PHP Development Instructions for GitHub Copilot.

GulajavaMinistudio/awesome-copilot-id · 15 tokens