What problem does it solve?
This Skill reduces security risk in Laravel applications by preventing common vulnerabilities in authentication, authorization, input handling, file uploads, and production configuration.
Core Features & Use Cases
- Authn/Authz Hardening: Apply Sanctum auth middleware, policies, and route-level authorization checks to block unauthorized access.
- Input & Data Safety: Use Form Requests for validation and sanitization, plus mass-assignment protection and safe querying practices.
- Operational Security Controls: Configure CSRF, rate limiting, secure sessions/cookies, encrypted attributes, security headers, CORS, and secrets handling to improve resilience under attack.
- Use Case: When building a new API endpoint for sensitive employee actions, you can enforce policy-based authorization, validate payloads via Form Requests, limit brute-force attempts with rate limiting, and harden session/cookie settings to lower breach likelihood.
Quick Start
Ask the AI to generate a Laravel security plan for your API endpoints, including CSRF/CORS configuration, Form Request validation rules, policy/gate enforcement, rate limiting rules, and file upload hardening steps.