laravel-auth

Implement authentication and authorization for Laravel 12 applications.

22|3|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/fusengine/agents --skill laravel-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-auth
Source: https://github.com/fusengine/agents/tree/main/plugins/laravel-expert/skills/laravel-auth
Command: npx skills add https://github.com/fusengine/agents --skill laravel-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the implementation of robust user authentication and authorization systems within Laravel applications, ensuring secure access control and user management.

Core Features & Use Cases

  • Authentication: Handles user login, registration, password reset, and session management.
  • Authorization: Implements granular access control using gates and policies for model-level permissions.
  • Social Login: Integrates with OAuth providers like Google and GitHub for seamless sign-in.
  • API Authentication: Supports Sanctum for API tokens and SPA authentication, and Passport for full OAuth2 server capabilities.
  • Use Case: Securely manage user access to a web application, ensuring only authorized users can perform specific actions on different resources, while also offering social login options.

Quick Start

Use the laravel-auth skill to implement user registration and login for a new Laravel 12 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 secure user authentication and authorization in a Laravel 12 application?

Secure user authentication and authorization in Laravel 12 involves handling login, registration, password resets, and email verification, alongside setting up granular access control using gates and policies for model-level permissions.

What is the best way to set up API token authentication for a Laravel SPA?

The best way to set up API token authentication for a Laravel SPA is using Sanctum, which provides lightweight API tokens and session-based authentication specifically designed for single-page applications and mobile apps.

How do I add social login with Google or GitHub to my Laravel application?

Adding social login with Google or GitHub to a Laravel application requires integrating OAuth providers, enabling users to securely sign in through external services without creating new passwords directly on your platform.

When should I use Laravel Passport instead of Sanctum for API authentication?

Use Laravel Passport instead of Sanctum when your application requires a full OAuth2 server implementation, whereas Sanctum is better suited for simpler API token distribution and SPA session authentication.

How do I enforce granular access control on specific models in Laravel?

Enforce granular access control on specific models in Laravel by implementing gates and policies, which define authorization rules ensuring only permitted users can perform actions on individual resources.

Does this Laravel authentication approach support email verification and password management?

This Laravel authentication approach fully supports email verification and comprehensive password management, handling secure registration flows, password resets, and session management out of the box.