Mity Docs Mity Docs for Mity Digital
Two Factor for Statamic Documentation

Working with users stored in a Database

Before you get started, make sure you configure your Statamic site to store users in the database.

This addon requires additional columns in your users table. We've included a migration you can use or extend to add the required fields to your database table.

You can publish this migration:

1php artisan vendor:publish --tag=statamic-two-factor-migrations

Make any tweaks needed (but do not rename this addon's columns), and run your migrations:

1php artisan migrate