Skip to content

Commit a046d52

Browse files
[1.x] Add Laravel Fortify guidelines for boost (#614)
* add Laravel Fortify guidelines for the Boost * formatting --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent db5057a commit a046d52

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Laravel Fortify
2+
3+
Fortify is a headless authentication backend that provides authentication routes and controllers for Laravel applications.
4+
5+
**Before implementing any authentication features, use the `search-docs` tool to get the latest docs for that specific feature.**
6+
7+
### Configuration & Setup
8+
- Check `config/fortify.php` to see what's enabled. Use `search-docs` for detailed information on specific features.
9+
- Enable features by adding them to the `'features' => []` array: `Features::registration()`, `Features::resetPasswords()`, etc.
10+
- To see the all Fortify registered routes, use the `list-routes` tool with the `only_vendor: true` and `action: "Fortify"` parameters.
11+
- Fortify includes view routes by default (login, register). Set `'views' => false` in the configuration file to disable them if you're handling views yourself.
12+
13+
### Customization
14+
- Views can be customized in `FortifyServiceProvider`'s `boot()` method using `Fortify::loginView()`, `Fortify::registerView()`, etc.
15+
- Customize authentication logic with `Fortify::authenticateUsing()` for custom user retrieval / validation.
16+
- Actions in `app/Actions/Fortify/` handle business logic (user creation, password reset, etc.). They're fully customizable, so you can modify them to change feature behavior.
17+
18+
## Available Features
19+
- `Features::registration()` for user registration.
20+
- `Features::emailVerification()` to verify new user emails.
21+
- `Features::twoFactorAuthentication()` for 2FA with QR codes and recovery codes.
22+
- Add options: `['confirmPassword' => true, 'confirm' => true]` to require password confirmation and OTP confirmation before enabling 2FA.
23+
- `Features::updateProfileInformation()` to let users update their profile.
24+
- `Features::updatePasswords()` to let users change their passwords.
25+
- `Features::resetPasswords()` for password reset via email.

0 commit comments

Comments
 (0)