← ClaudeAtlas

laravel-11-12-app-guidelineslisted

Work in Laravel 11 or 12 apps with stack detection, Boost-aware docs lookup, frontend conventions, tests, and Pint formatting.
soden46/syarif-laravel-ai-skills · ★ 4 · Code & Development · score 78
Install: claude install-skill soden46/syarif-laravel-ai-skills
# Laravel 11/12 App Guidelines Use this skill when implementing, fixing, or reviewing Laravel 11 or Laravel 12 applications. ## Start Here 1. Read repository instructions and local docs before making architectural decisions. 2. Confirm Laravel and PHP versions from `composer.json`, `composer.lock`, or `php artisan about` when available. 3. Detect whether commands should run through Sail, Docker Compose, Herd, Valet, or host PHP. 4. Detect app mode: API-only, Blade, Livewire, Inertia, Vue, React, or a mixed legacy stack. 5. Reuse existing conventions for naming, language, layout, components, testing, and error responses. ## Laravel 11/12 Conventions - Configure middleware, exception handling, and routing in `bootstrap/app.php` when the app follows the modern skeleton. - Register service providers through `bootstrap/providers.php` when that file exists. - Place scheduled commands in `routes/console.php` unless the project has an explicit scheduler abstraction. - Prefer named routes and `route()` generation for internal links and redirects. - Use Form Requests for non-trivial HTTP validation and request-bound authorization. - Use API Resources for public JSON response shape when the repo already follows resource patterns. - Ask before destructive database commands such as `migrate:fresh`, `db:wipe`, reset, rollback, or seed operations that overwrite data. ## Stack-Specific Notes - API-only apps: work in `routes/api.php`, follow the existing auth stack, and avoid frontend