developing-with-fortify

Automate Laravel Fortify headless authentication backend development.

Updated Jun 8, 2025
One-click install
npx skills add https://github.com/noartem/kawa --skill developing-with-fortify-noartem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: developing-with-fortify
Source: https://github.com/noartem/kawa/tree/main/ui/.opencode/skills/developing-with-fortify
Command: npx skills add https://github.com/noartem/kawa --skill developing-with-fortify-noartem

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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.

Core Features & Use Cases

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.

Quick Start

Scaffold Fortify in your Laravel project to begin integrating login, registration, and 2FA flows.

Frequently Asked Questions about developing-with-fortify

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

FAQPage Schema
How do I set up headless authentication in a Laravel backend?

Headless authentication in Laravel is configured by enabling features in the config/fortify.php file and creating actionable user contracts in app/Actions/Fortify. This scaffolds login, registration, and 2FA flows for web and API routes without frontend views.

How does Laravel Fortify handle two-factor authentication and recovery codes?

Laravel Fortify handles two-factor authentication by enabling Features::twoFactorAuthentication() in the config/fortify.php features array. This mechanism provides built-in TOTP support, generating QR codes and recovery codes for secure backend access.

Does Laravel Fortify support API routes for web authentication?

Yes, Laravel Fortify supports API routes by aligning routes, controllers, and middleware for secure headless auth across web and API endpoints. It acts as a backend provider, allowing you to build your own frontend or API clients.

How do I implement email verification in a Laravel Fortify backend?

To implement email verification, enable Features::emailVerification() in the config/fortify.php features array. This requires your User model to implement the MustVerifyEmail contract to handle the verification logic.

What is the best way to scaffold password reset and profile management in Laravel?

The best way to scaffold password reset and profile management is activating Features::resetPasswords() and Features::updateProfileInformation() within Laravel Fortify. This automates the backend logic for password recovery and profile updates.

Why is my Laravel Fortify registration flow not working?

A Laravel Fortify registration flow might not work if Features::registration() is not properly enabled in the config/fortify.php features array, or if actionable user contracts in app/Actions/Fortify are misaligned with your secure auth routes.