What problem does it solve?
Laravel applications are exposed to common security risks including CSRF attacks, SQL injection, insecure authentication, and unprotected file uploads when security best practices are not consistently implemented. This Skill provides actionable, framework-specific guidance to eliminate these gaps and strengthen your Laravel codebase against threats.
Core Features & Use Cases
- End-to-End Security Guidance: Covers authentication and authorization (Laravel Sanctum, policies), input validation, CSRF protection, mass assignment guards, file upload safety, secret management, rate limiting, and production deployment hardening.
- Practical Code Examples: Includes ready-to-use Laravel code snippets for implementing security controls like encrypted model casts, signed temporary routes, security headers, and CORS configuration.
- Use Case: When building a new Laravel API that processes user-uploaded invoices, use this Skill to implement proper Sanctum authentication, validate uploaded file types and sizes, add rate limiting to login endpoints, and configure security headers to block common web attacks.
Quick Start
Use the laravel-security skill to audit your Laravel application's authentication, input validation, and production security configuration for potential vulnerabilities.