What problem does it solve?
This Skill provides practical, actionable guidance to reduce security risks in Laravel applications by addressing common vulnerabilities across authentication, input handling, file uploads, secrets, and deployment configuration.
Core Features & Use Cases
- Authentication & Authorization: Guidance on using Sanctum/Passport, token lifecycle, guards, policies, and route middleware to protect endpoints.
- Input Validation & Data Safety: Recommendations for Form Requests, strict validation rules, mass-assignment protection, and encrypted attribute casts.
- Session, CSRF & XSS Protections: Best practices for secure session cookies, CSRF middleware use, output escaping, and header-based defenses.
- File Uploads & Rate Limiting: Validation of uploads, non-public storage recommendations, and throttling strategies for sensitive endpoints.
- Secrets, Deployment & Headers: Advice on environment secrets, key rotation, trusted proxies, security headers, and signed routes for temporary links.
- Use Case: Use this guidance to perform a security hardening pass before production deployment or to audit authentication and file upload flows after feature additions.
Quick Start
Use the laravel-security guidance to review my Laravel project and produce prioritized hardening recommendations for authentication, validation, file uploads, environment settings, and deployment configuration.