What problem does it solve?
Laravel applications are frequently vulnerable to common web security threats including broken authentication, CSRF attacks, SQL injection, and insecure file uploads, which can lead to data breaches, compliance violations, and loss of user trust.
Core Features & Use Cases
- Comprehensive Auth & Access Control: Guidance for implementing Laravel Sanctum/Passport API authentication, model policies, and gate-based authorization to restrict access to sensitive resources.
- Input & Data Protection: Best practices for request validation, mass assignment guards, encrypted attributes, and XSS/SQL injection prevention to keep user data safe.
- Production Hardening: Instructions for securing sessions, cookies, CORS configurations, rate limiting, and environment secrets to protect deployed Laravel applications from exploitation.
- Use Case: A developer building a Laravel API for customer payment data can use this skill to implement proper token auth, validate all incoming request payloads, and configure secure production settings to avoid exposing sensitive financial information.
Quick Start
Use the laravel-security skill to audit your Laravel application's authentication, input validation, and production configuration for common security vulnerabilities.