I'm trying to modify the original User.php file within the vendor folder of cartalyt/sentry because I want to register two accounts with the same email but the original code of Sentry is not allowing this feature so I added an attribute to the config.php file
/app/config/packages/cartalyst/sentry/config.php
But I don't know how to get this attribute to use in this file:
/vendor/cartalyst/sentry/src/Cartalyst/Sentry/Users/Eloquent/User.php
Because in that file I can simply add an if to check If I want to register one user per email or register more users with the same email.
Or if you have a better idea will be good to know it.
I hope you can help me!
You dont need to touch that file what you should do is
**remove this**
$table->unique('email');
**from this file**
**your-app/vendor/cartalyst/sentry/src/migrations/2012_12_06_225921_migration_cartalyst_sentry_install_users.php**
That would remove the unique constraint on creating a user with one single email
Then you might need to drop the db or look for a way to re-run the migrations.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.