protonemedia / laravel-verify-new-email

This package adds support for verifying new email addresses: when a user updates its email address, it won't replace the old one until the new one is verified.
https://protone.media/en/blog/an-add-on-to-laravels-built-in-email-verification-only-update-a-users-email-address-if-the-new-one-is-verified-as-well
MIT License
404 stars 30 forks source link

Class PendingUserEmail not allowing mass assignment #1

Closed jsilva74 closed 4 years ago

jsilva74 commented 4 years ago

Hi.

I'm getting this error when calling newEmail method with Laravel 6.9 under Valet on MacOS: Add [user_type] to fillable property to allow mass assignment on [ProtoneMedia\LaravelVerifyNewEmail\PendingUserEmail].

Checking the PendingUserEmail class, it's doesn't have the fillable attribute indeed.

Thanks for this package and any help you could provide.

pascalbaljet commented 4 years ago

I just tagged v1.0.2 with a fix. I usually unguard all my models so I didn't catch this during development. Thanks for noticing!