DE

developing-with-fortify

Guides the implementation and configuration of Laravel Fortify auth features.

Install

mkdir -p .claude/skills/developing-with-fortify-joshcirre && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18676" && unzip -o skill.zip -d .claude/skills/developing-with-fortify-joshcirre && rm skill.zip

Installs to .claude/skills/developing-with-fortify-joshcirre

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Laravel Fortify headless authentication backend development. Activate when implementing authentication features including login, registration, password reset, email verification, two-factor authentication (2FA/TOTP), profile updates, headless auth, authentication scaffolding, or auth guards in Laravel applications.
316 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • List all registered Fortify endpoints
  • Customize user creation logic
  • Configure rate limiting for login attempts
  • Set up two-factor authentication
  • Implement email verification
  • Configure password reset flows

How it works

Fortify provides authentication routes and controllers, which can be customized through actions, configuration files, and overridable response classes.

Inputs & outputs

You give it
Laravel application with Fortify installed
You get back
Configured authentication features or a list of Fortify routes

When to use developing-with-fortify

  • Setting up 2FA
  • Configuring registration flow
  • Customizing auth responses

About this skill

Laravel Fortify Development

Fortify is a headless authentication backend that provides authentication routes and controllers for Laravel applications.

Documentation

Use search-docs for detailed Laravel Fortify patterns and documentation.

Usage

  • Routes: Use list-routes with only_vendor: true and action: "Fortify" to see all registered endpoints
  • Actions: Check app/Actions/Fortify/ for customizable business logic (user creation, password validation, etc.)
  • Config: See config/fortify.php for all options including features, guards, rate limiters, and username field
  • Contracts: Look in Laravel\Fortify\Contracts\ for overridable response classes (LoginResponse, LogoutResponse, etc.)
  • Views: All view callbacks are set in FortifyServiceProvider::boot() using Fortify::loginView(), Fortify::registerView(), etc.

Available Features

Enable in config/fortify.php features array:

  • Features::registration() - User registration
  • Features::resetPasswords() - Password reset via email
  • Features::emailVerification() - Requires User to implement MustVerifyEmail
  • Features::updateProfileInformation() - Profile updates
  • Features::updatePasswords() - Password changes
  • Features::twoFactorAuthentication() - 2FA with QR codes and recovery codes

Use search-docs for feature configuration options and customization patterns.

Setup Workflows

Two-Factor Authentication Setup

- [ ] Add TwoFactorAuthenticatable trait to User model
- [ ] Enable feature in config/fortify.php
- [ ] Run migrations for 2FA columns
- [ ] Set up view callbacks in FortifyServiceProvider
- [ ] Create 2FA management UI
- [ ] Test QR code and recovery codes

Use search-docs for TOTP implementation and recovery code handling patterns.

Email Verification Setup

- [ ] Enable emailVerification feature in config
- [ ] Implement MustVerifyEmail interface on User model
- [ ] Set up verifyEmailView callback
- [ ] Add verified middleware to protected routes
- [ ] Test verification email flow

Use search-docs for MustVerifyEmail implementation patterns.

Password Reset Setup

- [ ] Enable resetPasswords feature in config
- [ ] Set up requestPasswordResetLinkView callback
- [ ] Set up resetPasswordView callback
- [ ] Define password.reset named route (if views disabled)
- [ ] Test reset email and link flow

Use search-docs for custom password reset flow patterns.

SPA Authentication Setup

- [ ] Set 'views' => false in config/fortify.php
- [ ] Install and configure Laravel Sanctum
- [ ] Use 'web' guard in fortify config
- [ ] Set up CSRF token handling
- [ ] Test XHR authentication flows

Use search-docs for integration and SPA authentication patterns.

Best Practices

Custom Authentication Logic

Override authentication behavior using Fortify::authenticateUsing() for custom user retrieval or Fortify::authenticateThrough() to customize the authentication pipeline. Override response contracts in AppServiceProvider for custom redirects.

Registration Customization

Modify app/Actions/Fortify/CreateNewUser.php to customize user creation logic, validation rules, and additional fields.

Rate Limiting

Configure via fortify.limiters.login in config. Default configuration throttles by username + IP combination.

Key Endpoints

FeatureMethodEndpoint
LoginPOST/login
LogoutPOST/logout
RegisterPOST/register
Password Reset RequestPOST/forgot-password
Password ResetPOST/reset-password
Email Verify NoticeGET/email/verify
Resend VerificationPOST/email/verification-notification
Password ConfirmPOST/user/confirm-password
Enable 2FAPOST/user/two-factor-authentication
Confirm 2FAPOST/user/confirmed-two-factor-authentication
2FA ChallengePOST/two-factor-challenge
Get QR CodeGET/user/two-factor-qr-code
Recovery CodesGET/POST/user/two-factor-recovery-codes

When not to use it

  • When not developing Laravel applications
  • When not implementing authentication features
  • When not using Fortify as a headless authentication backend

Limitations

  • Requires a Laravel application
  • Focuses on Fortify's headless authentication backend
  • Customization is limited to Fortify's provided extension points

How it compares

This skill provides direct access to Fortify's internal configurations and customization points, unlike manually searching through documentation.

Compared to similar skills

developing-with-fortify side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
developing-with-fortify (this skill)05moNo flagsIntermediate
fortify-development04moNo flagsIntermediate
debug-cross-service-auth03moNo flagsIntermediate
laravel-pdf113moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

fortify-development

gdarko

ACTIVATE when the user works on authentication in Laravel. This includes login, registration, password reset, email verification, two-factor authentication (2FA/TOTP/QR codes/recovery codes), profile updates, password confirmation, or any auth-related routes and controllers. Activate when the user m

00

debug-cross-service-auth

J-Akiru5

Use when: diagnosing Supabase JWT handoff failures from Next.js frontend to Laravel backend including headers, CORS, issuer, audience, and secret mismatches.

00

laravel-pdf

spatie

Generate PDFs from Blade views or HTML using spatie/laravel-pdf. Covers creating, formatting, saving, downloading, and testing PDFs with the Browsershot, Cloudflare, or DOMPDF driver.

1140

laravel-specialist

Jeffallan

Use when building Laravel 10+ applications requiring Eloquent ORM, API resources, or queue systems. Invoke for Laravel models, Livewire components, Sanctum authentication, Horizon queues.

1215

pennant-development

laravel

Manages feature flags with Laravel Pennant. Activates when creating, checking, or toggling feature flags; showing or hiding features conditionally; implementing A/B testing; working with @feature directive; or when the user mentions feature flags, feature toggles, Pennant, conditional features, rollouts, or gradually enabling features.

29

developing-shopper

shopperlabs

Provides coding standards and patterns for Laravel Shopper development. Use when creating or modifying Models, Actions, Enums, Livewire components, migrations, or tests in any Shopper package.

36

Search skills

Search the agent skills registry