Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将哨兵配置为通过用户名而不是电子邮件进行身份验证。我发现的所有示例都通过电子邮件进行身份验证。非常感谢任何帮助。
首先发布哨兵配置:
php artisan config:publish cartalyst/sentry
然后打开文件app\config\packages\cartalyst\sentry\config.php并编辑:
app\config\packages\cartalyst\sentry\config.php
'login_attribute' => 'email',