laravel-backend

Standardize Laravel 12 backend development with idiomatic models, controllers, and database interactions.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/gab3mioni/laravel-claudecode-toolkit --skill laravel-backend
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-backend
Source: https://github.com/gab3mioni/laravel-claudecode-toolkit/tree/main/skills/laravel-backend
Command: npx skills add https://github.com/gab3mioni/laravel-claudecode-toolkit --skill laravel-backend

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a standardized, opinionated framework for building and maintaining robust Laravel 12 backends, preventing common anti-patterns like N+1 queries, mass assignment vulnerabilities, and bloated controllers.

Core Features & Use Cases

  • Workflow Automation: Provides structured procedures for creating new resources end-to-end and performing safe database migrations on live tables.
  • Anti-Pattern Detection: Includes a comprehensive checklist and grep-able patterns to identify security risks and performance bottlenecks.
  • Architectural Guidance: Offers clear decision tables for placing business logic within Actions, Services, or Models to ensure maintainable codebases.

Quick Start

Invoke the laravel-backend skill to scaffold a new resource including model, migration, policy, and form requests for the order checkout endpoint.

Frequently Asked Questions about laravel-backend

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

FAQPage Schema
How do I prevent N+1 query problems and mass assignment vulnerabilities in Laravel 12?

Prevent N+1 queries and mass assignment vulnerabilities in Laravel 12 by enforcing idiomatic Eloquent interactions and FormRequests. Standardizing server-side development establishes secure, type-safe conventions for models and controllers to eliminate these common backend anti-patterns.

What is the best way to structure complex business logic in a Laravel backend?

The best way to structure complex business logic in a Laravel backend is using architectural decision tables to place code within Actions, Services, or Models. This ensures maintainable codebases by keeping controllers thin and separating concerns effectively.

How do I scaffold a new API resource end-to-end including migrations and policies?

Scaffold a new API resource end-to-end in Laravel 12 by generating the model, migration, policy, and form requests together. Structured workflows automate this creation process while enforcing established conventions for API Resources to guarantee type-safety.

Can I use this approach to perform safe database migrations on live tables?

Yes, you can perform safe database migrations on live tables using structured workflow automation. This standardized framework provides specific procedures for executing backend migrations securely without disrupting active database interactions.

Does this backend development workflow support security audits and code reviews?

This backend development workflow supports security audits and code reviews through comprehensive anti-pattern detection checklists. It includes grep-able patterns to identify security risks and performance bottlenecks within your Laravel 12 application codebase.

When should I not use API Resources for formatting database interactions in Laravel?

You should always use API Resources for formatting database interactions in Laravel 12 to ensure type-safety and performance. Deviating from these established conventions risks introducing bloated controllers and unstandardized API responses.