What problem does it solve?
Laravel applications are prone to common web attacks including CSRF, SQL injection, insecure authentication, and data exfiltration if security best practices are not consistently implemented. This Skill provides actionable, framework-specific guidance to eliminate these risks and harden Laravel codebases for production use.
Core Features & Use Cases
- Comprehensive Security Coverage: Includes guidance for authentication/authorization (Sanctum/Passport), input validation, CSRF protection, mass assignment guards, secure file uploads, and production deployment hardening.
- Concrete Implementation Examples: Provides ready-to-use code snippets for common security controls like rate limiting, encrypted attributes, signed URLs, and security headers.
- Use Case: When building a new Laravel API endpoint that handles sensitive user data, use this Skill to implement proper rate limiting, authorization checks, and input validation to prevent unauthorized access and injection attacks.
Quick Start
Use the laravel-security skill to audit your Laravel application's current authentication, input validation, and session security configurations for potential vulnerabilities.