laravel-best-practices

Enforce Laravel best practices across PHP codebases for maintainability and security.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/daviddatuX25/SecureCAT-v2 --skill laravel-best-practices-daviddatux25
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-best-practices
Source: https://github.com/daviddatuX25/SecureCAT-v2/tree/main/.agents/skills/laravel-best-practices
Command: npx skills add https://github.com/daviddatuX25/SecureCAT-v2 --skill laravel-best-practices-daviddatux25

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Laravel projects often accumulate divergent coding patterns, creating maintenance burden, onboarding friction, and consistency gaps across teams.

Core Features & Use Cases

  • Centralized Laravel best-practice guidelines covering controllers, models, migrations, policies, jobs, queues, services, and Eloquent queries.
  • Anti-patterns, decision rules, and concrete examples to speed up code reviews and refactoring.
  • Use-case: A team standardizes architecture across multiple modules, reducing bugs and improving onboarding.

Quick Start

Review your Laravel project against the guidelines and generate a concrete refactor plan aligning with the best practices.

Frequently Asked Questions about laravel-best-practices

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

FAQPage Schema
How do I enforce Laravel best practices across controllers, models, and migrations?

Enforce Laravel best practices by applying curated rules, examples, and guidelines to writing, reviewing, and refactoring PHP code. This improves maintainability and security across controllers, models, migrations, policies, jobs, and tests.

What Laravel anti-patterns should I look for when refactoring Eloquent queries?

Laravel anti-patterns include divergent coding patterns and inconsistent Eloquent query standards. Identifying these anti-patterns using decision rules and concrete examples speeds up refactoring and reduces maintenance burden.

How do I standardize Laravel coding standards for validation and error handling?

Standardize Laravel coding standards by satisfying functional requirements for consistent validation and error handling. Centralized guidelines provide rules and examples that ensure secure interactions across your codebase.

Can I use this to generate a refactor plan for a Laravel codebase with consistency gaps?

Yes, you can review your Laravel project against centralized best-practice guidelines to generate a concrete refactor plan. This aligns your codebase with consistent coding standards, reducing bugs and improving onboarding.

Why does my Laravel project have maintenance burden and onboarding friction across modules?

Laravel projects accumulate divergent coding patterns across modules, creating maintenance burden and onboarding friction. Applying centralized best-practice guidelines for architecture standardization reduces these consistency gaps.

Does this cover Laravel testing and policies for secure code interactions?

Yes, this covers Laravel testing and policies by providing a curated set of rules and examples. It ensures secure interactions and consistent coding standards across services, jobs, queues, and Eloquent queries.