Skip to content

2fa migrations #1

@useahawk

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();

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