Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaycalicut17 authored May 1, 2022
1 parent 638ed90 commit 532d195
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,25 @@ Password
- [Registration](https://laravel.com/docs/fortify#registration)
- [Password Reset](https://laravel.com/docs/fortify#password-reset)
- [Email Verification](https://laravel.com/docs/fortify#email-verification)

Enable email verification feature in config/fortify.php
```code
Features::emailVerification(),
```
Ensure App\Models\User class implements the Illuminate\Contracts\Auth\MustVerifyEmail interface.
```code
use Illuminate\Contracts\Auth\MustVerifyEmail;
class User extends Authenticatable implements MustVerifyEmail
{
```
To specify that a route or group of routes requires that the user has verified their email address, you should attach Laravel's built-in verified middleware to the route.
```code
Route::middleware(['auth', 'verified'])->group(function () {
// ...
});
```

- [Password Confirmation](https://laravel.com/docs/fortify#password-confirmation)

## Dependents
Expand Down

0 comments on commit 532d195

Please sign in to comment.