ellaisys / aws-cognito

AWS Cognito package (with MFA Feature) using the AWS SDK for PHP/Laravel
https://ellaisys.github.io/aws-cognito/
MIT License
110 stars 43 forks source link

User Model Reference Incorrect #85

Closed Glazebrook closed 11 months ago

Glazebrook commented 12 months ago

Describe the bug A clear and concise description of what the bug is. On line 143 of aws-cognito/config/cognito.php you have the following

'sso_user_model' => env('AWS_COGNITO_USER_MODEL', 'App\User'),

when it should be

'sso_user_model' => env('AWS_COGNITO_USER_MODEL', 'App\Models\User'),

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

amitdhongde commented 11 months ago

@Glazebrook, Thank you for reaching out. The .env param allows you to set the value as needed. We have updated the default value as per the existing Laravel defaults for the model class.