Skip to content

2fa migrations #1

Description

@useahawk

when I make php artisan migrate:fresh and then create new admin with php artisan lit:admin it throws an error, because there are no defaults for the 2fa fields.

my solution in the migrations file:
$table->boolean('two_fa_enabled')->default(0);
$table->string('two_fa_secret')->nullable();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions