laravel-security

Implement Laravel security best practices for authentication, validation, and rate limiting.

12|4|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/TeiNam/kiro-with-harness --skill laravel-security-teinam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-security
Source: https://github.com/TeiNam/kiro-with-harness/tree/main/skills/laravel-security
Command: npx skills add https://github.com/TeiNam/kiro-with-harness --skill laravel-security-teinam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides expert guidance to harden Laravel applications, addressing common security issues like authentication, validation, CSRF protection, and secure deployment.

Core Features & Use Cases

  • Security Best Practices: Offers a comprehensive guide covering authn/authz, validation, CSRF, mass assignment, file uploads, secrets, rate limiting, and secure deployment.
  • Middleware and Guards: Implements CSRF tokens, security headers, access control, and input validation.
  • Rate Limiting: Adds abuse protection with rate limiting and authentication controls.
  • Use Case: Ideal for developers looking to ensure their Laravel applications adhere to industry-standard security protocols.

Quick Start

Run the laravel-security skill to review and implement security best practices in your Laravel application.

Frequently Asked Questions about laravel-security

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

FAQPage Schema
How do I implement authentication and authorization security best practices in Laravel?

To implement authentication and authorization in Laravel, configure middleware and guards to enforce access control and validate user permissions. This Skill provides comprehensive guidance for setting up secure authn and authz protocols to harden your application.

What is the best way to add rate limiting to a Laravel application for abuse protection?

The best way to add rate limiting in Laravel for abuse protection is by configuring built-in rate limiter middleware. This Skill guides PHP developers in implementing authentication controls and request throttling to mitigate common vulnerabilities.

How do I secure file uploads and prevent mass assignment vulnerabilities in Laravel?

To secure file uploads and prevent mass assignment in Laravel, apply strict input validation rules and use guarded model attributes. This Skill helps implement validation best practices to mitigate these common security vulnerabilities.

Does this Laravel security guidance cover CSRF tokens and security headers?

Yes, this Laravel security guidance covers CSRF tokens and security headers by implementing middleware for access control. It focuses on mitigating common vulnerabilities through proper security configuration and input validation.

What steps are needed to configure secure deployment for a Laravel PHP application?

Configuring secure deployment for a Laravel PHP application involves protecting secrets, applying security headers, and enforcing rate limiting. This Skill offers expert guidance to ensure your deployment adheres to industry-standard security protocols.