laravel-best-practices

Standardize Laravel code quality with best-practice rules for controllers, models, and migrations.

15|3|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/signals-rental/framework --skill laravel-best-practices-signals-rental
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-best-practices
Source: https://github.com/signals-rental/framework/tree/main/.claude/skills/laravel-best-practices
Command: npx skills add https://github.com/signals-rental/framework --skill laravel-best-practices-signals-rental

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a comprehensive, standardized set of Laravel best practices to help teams write clean, consistent, and maintainable code, reducing bugs and facilitating code reviews.

Core Features & Use Cases

  • Enforces consistency across Laravel codebases, covering controllers, models, migrations, form requests, policies, jobs, and scheduled commands.
  • Improves performance and security by prescribing eager loading, proper validation, authorization patterns, and robust testing guidelines.
  • Supports architecture decisions and routing, queue management, HTTP client usage, and migrations to enable scalable Laravel applications.
  • Real-world use: during code reviews, apply the rules to identify N+1 queries, mass assignment risks, and anti-patterns, then refactor to align with best practices.

Quick Start

Review a Laravel project and begin applying the rules to improve consistency and maintainability.

Frequently Asked Questions about laravel-best-practices

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

FAQPage Schema
How do I fix N+1 query problems during a Laravel code review?

To fix N+1 query problems during a Laravel code review, apply best-practice rules that prescribe eager loading across models and controllers. This standardizes code quality and guides refactoring to eliminate inefficient database access patterns.

What is the best way to prevent mass assignment risks in Laravel applications?

The best way to prevent mass assignment risks in Laravel is to enforce standardized best practices using form requests and proper authorization policies. This ensures robust validation and secure data handling across the application.

How do I standardize Laravel migrations and scheduled commands for scalable architecture?

Standardize Laravel migrations and scheduled commands by applying structured best-practice rules to architecture and scheduling. This supports scalable application growth by codifying consistency and guiding governance across queue management and routing.

Does this Laravel refactoring approach cover controllers, models, and jobs?

Yes, this Laravel refactoring approach covers controllers, models, migrations, form requests, policies, and jobs. It defines a structured content model with categories and references to extend governance and discovery across all these components.

When do I need standardized best-practice rules for my Laravel codebase?

You need standardized best-practice rules for your Laravel codebase when you want to enforce consistency, reduce bugs, and facilitate code reviews. This is essential for maintaining clean, maintainable code as your application and team scale.