spatie-laravel-php

Apply Spatie Laravel and PHP coding standards to Laravel projects.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Spatie's Laravel & PHP guidelines provide a standardized set of coding practices to ensure consistency, readability, and Laravel-native structure across a project, reducing code drift and review time.

Core Features & Use Cases

  • Adheres to Laravel conventions and PSR-12 across controllers, models, routes, config, validation, migrations, tests, and Blade templates.
  • Improves code quality, maintainability, and onboarding by applying a single, well-documented standard.
  • Use Case: when starting new Laravel projects, refactoring legacy code, or performing code reviews to ensure conformity with Spatie guidelines.

Quick Start

Apply Spatie Laravel & PHP guidelines to a Laravel project to align controllers, models, routes, and tests with Laravel conventions and PSR-12.

Frequently Asked Questions about spatie-laravel-php

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

FAQPage Schema
How do I enforce Spatie PHP and Laravel coding standards in my project?

To enforce Spatie PHP and Laravel coding standards, apply this Skill to your project. It automatically checks controllers, Eloquent models, routes, and Blade templates to ensure they follow PSR-12 and Laravel-native conventions.

What is the best way to ensure PSR-12 compliance in Laravel Blade templates?

The best way to ensure PSR-12 compliance in Blade templates is to apply structured coding guidelines. This Skill checks Blade files alongside controllers and models to maintain consistent, typed properties and return types across the view layer.

Can I use this to refactor legacy Laravel code to modern coding conventions?

Yes, you can use this to refactor legacy Laravel code to modern conventions. The Skill analyzes existing codebases and applies Spatie guidelines to align old code with current PSR-12 standards and structured Laravel practices.

Does this Spatie guideline check Eloquent models and validation rules?

Yes, the Spatie guideline checks Eloquent models and validation rules. Its scope explicitly includes models, validation rules, config files, and migrations to ensure comprehensive adherence to Laravel conventions and typed properties.

Why apply Spatie Laravel guidelines instead of generic PHP coding standards?

Applying Spatie Laravel guidelines ensures code follows Laravel-native structure first, rather than generic PHP rules. This prioritizes framework conventions for controllers and routes, improving maintainability and reducing onboarding time for Laravel developers.