lucor/laravel-auth-file-driver

为 Laravel 的文件认证驱动

0.9.1 2014-06-18 09:56 UTC

This package is auto-updated.

Last update: 2024-08-29 04:03:20 UTC


README

Laravel 提供的文件认证驱动。

Total Downloads Latest Stable Version Build Status

安装

Composer

像往常一样,通过 Composer 安装此包。

"require": {
    "lucor/laravel-auth-file-driver": "0.9.*"
}

服务提供者配置

app/config/app.php 中的 providers 部分添加服务提供者

'providers' => array(
	...
    'Lucor\Auth\AuthServiceProvider',
)

驱动配置

app/config/auth.php 中更改默认驱动

'driver' => 'file',

用户配置

执行配置发布命令

php artisan config:publish lucor/laravel-auth-file-driver.

这将添加用户配置文件至 app/config/packages/lucor/auth/users.php

版权和许可证

此包在 MIT 许可证下发布。有关详细信息,请参阅 LICENSE 文件。