thiagothaison / uac-acesso-web
PHP 用户访问控制 - 网页访问
v1.0.4
2018-02-21 17:32 UTC
Requires
- php: >=7.0
This package is not auto-updated.
Last update: 2024-09-21 15:27:42 UTC
README
安装
使用composer安装此包。建议只在开发时安装此包。
composer require thiagothaison/uac-acesso-web
将ServiceProvider添加到config/app.php中的providers数组
AcessoWeb\Providers\AcessoWebProvider::class,
并替换HashServiceProvider
Illuminate\Hashing\HashServiceProvider::class,
为
AcessoWeb\Libraries\HashServiceProvider::class,
用法
现在你可以在Auth/LoginController.php中替换
use Illuminate\Foundation\Auth\AuthenticatesUsers;
为
use AcessoWeb\Traits\Auth\AuthenticatesUsers;