AgentSkillsCN

developing-with-fortify

开发Laravel Fortify无头认证后端(登录、注册、双因素认证等)。

SKILL.md
--- frontmatter
name: developing-with-fortify
description: Laravel Fortify headless authentication backend development (login, register, 2FA, etc).

Fortify

Headless auth backend.

Documentation

Use search-docs for patterns.

Usage

  • Routes: list-routes (action: "Fortify", only_vendor: true).
  • Actions: app/Actions/Fortify/.
  • Config: config/fortify.php.
  • Views: Set in FortifyServiceProvider::boot().

Features

Enable in config/fortify.php:

  • registration(), resetPasswords(), emailVerification(), updateProfileInformation(), updatePasswords(), twoFactorAuthentication().

Workflows

  • 2FA: Add TwoFactorAuthenticatable to User. Enable in config. Run migrations. View callbacks.
  • Verification: MustVerifyEmail on User.