m1guelpf/laravel-fastlogin

Cannot declare class CreateWebauthnCredentialsTable, because the name is already in use

luiyongsheng opened this issue · 16 comments

Error is thrown when I do migrations for the first time.

@luiyongsheng How is that helpful ? Can you please try and clarify ? Maybe screenshots ? Maybe pieces of code ?

The only code change after m1guelpf/laravel-fastlogin package installed

class User extends Authenticatable
{
    // ....
    use CanFastLogin;
    // ....
}

Same issue nothing more than composer install and added the use

It appears you have the same class. Maybe you published it twice?

Only commands run:

composer require m1guelpf/laravel-fastlogin

php artisan migrate

Only commands run:

composer require m1guelpf/laravel-fastlogin

php artisan migrate

same here

Same error for me when i run
php artisan migrate
for the first time.

v1.0.2 does not have this issue.

v1.0.2 does not have this issue.

yep v1.0.2 worked fine for me

You have to rename the migration file

from 2021_01_24_154837_create_credentials_table.php

to 2021_01_24_154837_create_webauthn_credentials_table.php

Pull request is created

#11

I think the README file should get an update, instructions are not clear.

You have to rename the migration file

from 2021_01_24_154837_create_credentials_table.php

to 2021_01_24_154837_create_webauthn_credentials_table.php

Pull request is created

#11

Confirmed - cheers!

You have to rename the migration file
from 2021_01_24_154837_create_credentials_table.php
to 2021_01_24_154837_create_webauthn_credentials_table.php
Pull request is created
#11

Confirmed - cheers!
Makes sense

Any chance we can get this merged in please?

Fixed in #11