laravel-security

Harden Laravel authentication, authorization, validation, CSRF, and deployment settings.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/caovinhphuc/React-OAS-Integration-v4.0 --skill laravel-security-caovinhphuc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-security
Source: https://github.com/caovinhphuc/React-OAS-Integration-v4.0/tree/main/.claude/skills/laravel-security
Command: npx skills add https://github.com/caovinhphuc/React-OAS-Integration-v4.0 --skill laravel-security-caovinhphuc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Laravel applications often ship with common security gaps around authentication, authorization, input validation, CSRF, secret management, and deployment hardening. This Skill provides a structured checklist and guidance to systematically close these gaps.

Core Features & Use Cases

  • Harden authentication and authorization using guards, policies, and token-based schemes (e.g., Sanctum/Passport).
  • Enforce robust input validation, secure file uploads, and secret handling with environment-driven configurations.
  • Apply security headers, rate limiting, and signed URLs to protect APIs and web routes in production.

Quick Start

Implement CSRF protection, proper authentication guards, validation rules, rate limiting, and signed routes to harden a Laravel application in production.

Frequently Asked Questions about laravel-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I secure a Laravel application for production?

Secure a Laravel application by applying baseline security configurations, robust access control, input validation, rate limiting, encrypted attributes, and signed routes to protect APIs and web routes. This hardens authentication, authorization, CSRF protection, and deployment settings.

How do I implement authentication and authorization in Laravel?

Implement authentication and authorization in Laravel by configuring authentication guards, defining authorization policies, and applying token-based schemes like Sanctum or Passport. This ensures robust access control across API and web routes.

What is the best way to handle CSRF protection and input validation in Laravel?

The best way to handle CSRF protection and input validation in Laravel is by enforcing robust validation rules, securing file uploads, and applying environment-driven configurations to safely process user input and prevent tampering across web routes.

Does this Laravel security checklist cover API rate limiting and signed routes?

Yes, this Laravel security checklist covers API rate limiting and signed routes. It applies these mechanisms to protect APIs and web routes in production, ensuring tamper-proof links and mitigating excessive request traffic.

Can I use these Laravel security practices for both web and API routes?

Yes, you can use these Laravel security practices for both web and API routes. The guidance is applicable across the full Laravel stack, systematically closing security gaps in input handling, file uploads, and secret management.

Why do I need encrypted attributes and deployment hardening for my Laravel app?

You need encrypted attributes and deployment hardening for your Laravel app to meet production-grade requirements. This ensures proper secret management, protects sensitive data at rest, and secures the application environment against common deployment vulnerabilities.