bhoechie/laravel-customable-auth

Laravel 自定义认证提供者

1.1 2016-10-08 02:07 UTC

This package is auto-updated.

Last update: 2024-09-21 22:33:54 UTC


README

此包允许您使用默认的 Laravel 认证使用除密码以外的凭据字段

要求

  • PHP 5.5
  • Laravel >= 5.2

安装

使用 Composer 安装 PHP 客户端库:composer require bhoechie/laravel-customable-auth

然后,在您的 config/app.php 文件中的 providers 数组中将 Bhoechie\CustomableAuth\AuthServiceProvider 添加到应用服务提供者之前

Bhoechie\CustomableAuth\AuthServiceProvider::class

/*
* Application Service Providers...
*/

配置

您必须使用 artisan vendor:publish 发布配置,以将分发配置文件复制到您的应用程序的配置目录

php artisan vendor:publish

然后设置基于您数据库密码名称的 password_field