laravel-auth

Implement authentication and authorization for Laravel applications with Sanctum, Passport, and Socialite.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/Jorge-Ivan/uam-hogar-nazareth-web --skill laravel-auth-jorge-ivan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-auth
Source: https://github.com/Jorge-Ivan/uam-hogar-nazareth-web/tree/main/.claude/skills/laravel-auth
Command: npx skills add https://github.com/Jorge-Ivan/uam-hogar-nazareth-web --skill laravel-auth-jorge-ivan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust framework for implementing secure user authentication and authorization within Laravel applications, covering everything from basic login to advanced API token management.

Core Features & Use Cases

  • Authentication: Handles user registration, login, logout, password reset, and email verification.
  • Authorization: Implements granular access control using gates and policies for model-level permissions.
  • API & SPA Auth: Supports secure authentication for APIs and Single Page Applications using Sanctum and Passport.
  • Use Case: Securely manage user access to a web application, ensuring only authorized users can perform specific actions like editing their profile or accessing sensitive data.

Quick Start

Use the laravel-auth skill to implement user registration and login functionality for a new Laravel project.

Frequently Asked Questions about laravel-auth

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

FAQPage Schema
How do I implement Laravel authentication for APIs and Single Page Applications?

Laravel authentication for APIs and SPAs is implemented using Sanctum for API tokens or Passport for OAuth2. This approach securely manages user access and issues tokens for frontend applications.

What is the best way to set up granular access control in Laravel?

Granular access control in Laravel is set up using gates and policies. This mechanism provides model-level permissions to ensure only authorized users can perform specific actions like editing profiles.

Does this Laravel authentication approach support social logins and email verification?

Yes, Laravel authentication supports social logins via Socialite and includes built-in email verification. It comprehensively handles user registration, login, logout, and password management.

When should I use Laravel Sanctum vs Passport for token management?

Use Laravel Sanctum for lightweight API tokens and session-based authentication for SPAs. Use Passport when your application requires full OAuth2 authorization server capabilities for token management.

How do I handle password reset and user registration in a new Laravel project?

Password reset and user registration in Laravel are handled through built-in authentication components. This provides a robust framework managing user login, logout, and secure password recovery workflows.