developing-with-fortify

Configure Laravel Fortify headless authentication routes and features.

2|1|Updated Jul 21, 2024
One-click install
npx skills add https://github.com/Barata-Ribeiro/MediManage --skill developing-with-fortify-barata-ribeiro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: developing-with-fortify
Source: https://github.com/Barata-Ribeiro/MediManage/tree/main/.github/skills/developing-with-fortify
Command: npx skills add https://github.com/Barata-Ribeiro/MediManage --skill developing-with-fortify-barata-ribeiro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Laravel Fortify provides a robust headless authentication backend for Laravel applications, simplifying the integration of secure login, registration, password reset, email verification, and 2FA workflows.

Core Features & Use Cases

  • Headless authentication routes and controllers for login, registration, and password management.
  • Optional 2FA/TOTP support, profile updates, and custom authentication scaffolding to fit SPA or API-first apps.
  • Use Case: Build a multi-role SaaS app with secure user onboarding, password recovery, and token-based authentication.

Quick Start

Configure Fortify features in config/fortify.php, register the necessary routes, and enable authentication scaffolding to start using headless authentication.

Frequently Asked Questions about developing-with-fortify

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

FAQPage Schema
How do I implement headless authentication in a Laravel application?

Laravel Fortify provides headless authentication by configuring features in config/fortify.php and registering routes. It delivers backend scaffolding for login, registration, and password management workflows without coupling to frontend views.

Can I use Laravel Fortify for SPA and API-first applications?

Yes, Fortify supports SPA and API-first apps by providing headless authentication routes and custom scaffolding. This allows token-based authentication and secure user onboarding without enforcing a specific frontend architecture.

What is the best way to add two-factor authentication to a Laravel backend?

Adding two-factor authentication to a Laravel backend involves enabling Fortify's optional 2FA/TOTP support. You activate the feature in config/fortify.php to provide time-based one-time password protection for user authentication workflows.

How do I set up email verification and password resets using Laravel Fortify?

To set up email verification and password resets, enable these features in config/fortify.php. Fortify automatically registers the headless routes and controllers required to process password recovery and verification workflows.

Does Laravel Fortify work without Laravel Breeze or Jetstream?

Fortify functions as a standalone headless authentication backend without requiring Breeze or Jetstream. It independently registers authentication routes and scaffolding, making it ideal for custom SPA or API-first Laravel implementations.