laravel-security

Implement Laravel security best practices for authentication, validation, and data protection.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/vrcms/everything-qwen-code --skill laravel-security-vrcms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-security
Source: https://github.com/vrcms/everything-qwen-code/tree/main/.qwen/skills/laravel-security
Command: npx skills add https://github.com/vrcms/everything-qwen-code --skill laravel-security-vrcms

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the complexity of securing Laravel applications against common web vulnerabilities like SQL injection, XSS, CSRF, and unauthorized access.

Core Features & Use Cases

  • Access Control: Implements robust authentication via Sanctum and authorization using Policies and Gates.
  • Input Protection: Enforces strict validation through Form Requests and prevents mass assignment vulnerabilities.
  • Security Hardening: Provides configurations for secure headers, rate limiting, encrypted attributes, and safe file uploads.

Quick Start

Use the laravel-security skill to audit my current project for common vulnerabilities and suggest necessary middleware configurations.

Frequently Asked Questions about laravel-security

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

FAQPage Schema
How do I prevent mass assignment vulnerabilities in Laravel?

Preventing mass assignment vulnerabilities in Laravel involves enforcing strict validation rules using Form Requests and securing data attributes to mitigate unauthorized access. This ensures robust input protection.

What is the best way to configure Laravel authentication and authorization?

The best way to configure Laravel authentication and authorization is by implementing robust authentication via Sanctum and defining access control rules using native Policies and Gates.

How do I audit my Laravel application for common web security vulnerabilities?

Auditing Laravel applications for common web security vulnerabilities involves checking for SQL injection, XSS, and CSRF mitigation, while ensuring proper session management and secure headers.

Does this approach support secure API communication and rate limiting in PHP?

Yes, this approach supports secure API communication and rate limiting in PHP by enforcing industry standards for session management and providing specific deployment configurations to harden security.

How do I set up secure file uploads and encrypted attributes in Laravel?

Setting up secure file uploads and encrypted attributes in Laravel requires applying specific security hardening configurations that protect data at rest and validate uploaded file integrity.