laravel-auth

Standardize Laravel 12 authentication with Sanctum, Fortify, and policies.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/gab3mioni/laravel-claudecode-toolkit --skill laravel-auth-gab3mioni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-auth
Source: https://github.com/gab3mioni/laravel-claudecode-toolkit/tree/main/skills/laravel-auth
Command: npx skills add https://github.com/gab3mioni/laravel-claudecode-toolkit --skill laravel-auth-gab3mioni

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill resolves complex authentication and authorization challenges in Laravel 12, preventing common security vulnerabilities like session fixation, CSRF misconfiguration, and broken access control.

Core Features & Use Cases

  • Auth Flow Orchestration: Provides standardized workflows for Sanctum SPA mode, Fortify headless flows, and API token management.
  • Security Auditing: Includes automated checklists to detect brute-force vulnerabilities, missing middleware, and insecure password handling.
  • Use Case: When building an Inertia-based SPA, use this skill to correctly wire Sanctum cookie authentication, configure CORS, and ensure CSRF protection is properly synchronized between the frontend and backend.

Quick Start

Use the laravel-auth skill to audit the current project for missing login throttling and insecure session handling.

Frequently Asked Questions about laravel-auth

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

FAQPage Schema
How do I configure Laravel Sanctum SPA cookie authentication for an Inertia frontend?

Laravel Sanctum SPA cookie authentication requires proper CORS configuration and synchronized CSRF protection between the frontend and backend. This skill provides standardized workflows to correctly wire cookie sessions, configure CORS, and ensure tokens are securely issued for Inertia-based applications.

What is the best way to implement multi-guard authentication and Policy-based access control in Laravel 12?

Multi-guard authentication and Policy-based access control in Laravel 12 standardize authorization workflows across different user types. This skill facilitates secure implementation of multi-guard configurations and Policy-based access control to prevent broken access control vulnerabilities.

Why does my Laravel authentication flow have session fixation and CSRF misconfiguration vulnerabilities?

Laravel authentication session fixation and CSRF misconfiguration vulnerabilities often stem from missing middleware or insecure session handling. This skill resolves these complex authentication challenges by providing automated audit checklists to detect missing middleware and insecure password handling.

How do I audit my Laravel application for missing login throttling and brute-force vulnerabilities?

Auditing Laravel applications for missing login throttling and brute-force vulnerabilities involves checking authentication middleware configurations. This skill provides automated security audit checklists and troubleshooting matrices to detect brute-force vulnerabilities and insecure session handling.

Does Laravel Fortify headless authentication work with API token management and multi-guard setups?

Laravel Fortify headless authentication works with API token management and multi-guard configurations to provide secure access control. This skill orchestrates these auth flows, ensuring compliance with security best practices for token issuance and multi-guard setups.

What are the limitations of using Sanctum cookie sessions for SPA authentication in Laravel?

Sanctum cookie sessions for SPA authentication in Laravel can face limitations with CORS misconfiguration and unsynchronized CSRF protection. This skill provides troubleshooting matrices for common auth-related failures to address these limitations and ensure secure session handling.