laravel-11-12-app-guidelines

Provides standards and workflows for building apps with Laravel 4.0 and newer versions.

Updated Mar 31, 2025
One-click install
npx skills add https://github.com/spraby/api --skill laravel-11-12-app-guidelines-spraby
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-11-12-app-guidelines
Source: https://github.com/spraby/api/tree/main/.agents/skills/laravel-11-12-app-guidelines
Command: npx skills add https://github.com/spraby/api --skill laravel-11-12-app-guidelines-spraby

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized workflow and best practices for developing Laravel 11 or 12 applications, ensuring consistency and efficiency across various stack configurations.

Core Features & Use Cases

  • Stack Detection: Automatically identifies project setup (API-only, full-stack, frontend frameworks, auth).
  • Core Conventions: Enforces Laravel 11/12 structure, Eloquent usage, Form Requests, and routing best practices.
  • Tool Integration: Guides usage of Docker Compose/Sail, Inertia, Livewire, Vue, Blade, Tailwind v4, Fortify, Wayfinder, PHPUnit, Pint, and Laravel Boost tools.
  • Use Case: When starting a new feature in a Laravel 12 project that uses Inertia with React and Tailwind CSS, this Skill ensures you follow the project's established patterns for component creation, routing, and styling.

Quick Start

Follow the repository instructions in AGENTS.md and then use the search-docs command to find guidance on implementing the new user authentication flow.

Frequently Asked Questions about laravel-11-12-app-guidelines

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

FAQPage Schema
What are the best practices for structuring a new Laravel 11 or 12 application?

Laravel 11/12 best practices involve using Eloquent for data access, Form Requests for validation, and standard routing conventions to maintain a consistent project structure. You should also enforce code formatting with Pint to ensure consistency across your web development workflow.

How do I start a new feature in a Laravel project using Inertia and React?

To start a feature with Inertia and React, follow established patterns for component creation, routing, and styling. You can use the search-docs command to find specific guidance on implementing workflows like user authentication flows within your existing full-stack setup.

Does this Laravel workflow support API-only projects and Docker Compose?

Yes, this workflow supports API-only projects alongside full-stack setups. It automatically detects your project stack and provides specific guidelines for using Docker Compose or Sail for container management during your Laravel development workflow.

Can I use Tailwind v4 and Livewire with these Laravel coding guidelines?

Yes, you can use Tailwind v4 and Livewire. The guidelines support diverse frontend stacks including Blade, Vue, and Livewire, ensuring your component creation and styling follow the correct conventions for your specific Laravel configuration.

What is the best way to debug a Laravel application during development?

The best way to debug Laravel is by leveraging Boost MCP tools like search-docs, list-artisan-commands, and tinker. These tools help you search documentation, discover available commands, and run code interactively for efficient debugging.

How do I configure PHPUnit and Pint for a Laravel 12 codebase?

You configure PHPUnit and Pint by following the enforced testing and formatting best practices provided in the guidelines. This ensures your Laravel 12 codebase maintains consistent styling and reliable test coverage throughout the development cycle.