laravel
Laravel
Use this skill to navigate Laravel across major versions. The skill detects your project's installed Laravel version and derives applicable patterns and breaking changes for that version — not just from memory. Laravel evolves fast; your training data may be stale. When in doubt, derive from the official laravel/docs repo for the detected version — see Detect Version & Derive Guidance below.
Precondition — do not skip: Before making any claim about Laravel patterns, breaking changes, or reviewing code against 'current' Laravel conventions, you MUST first run Step 1 below to detect the actual installed version in this project. Never assume the version from the user's phrasing, training data, or the presence of the 'Laravel 13 Reference' section in this file. State the detected version explicitly before giving version-specific guidance. If detection is impossible (e.g. no project context, greenfield question), say so explicitly instead of guessing a version.
Detect Version & Derive Guidance
When a question touches on Laravel patterns, breaking changes, or version-specific features, follow this procedure to ensure you're giving guidance for the actual installed version, not guessing:
Step 1: Detect the installed Laravel version
Run one or more of these commands in the project root: