einice/confide
最新稳定版本:1.3
Composer 安装命令:
composer require einice/confide
包简介
Confide is an authentication solution for Laravel 5.1
关键字:
README 文档
README
这个包是修改自 Zizaco/confide 的,仅是为了支持 laravel 5.1.x
安装
执行
composer require einice/confide
注册服务提供者
'providers' => [
// ...
Einice\Confide\ServiceProvider::class,
]
注册 Facade
'aliases' => [
// ...
'Confide' => Einice\Confide\Facade::class,
]
生成数据库文件(需要删除 database/migrations 下的两个自带文件)
php artisan confide:migration
安装数据表
php artisan migrate
修改 user.php 模型
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Einice\Confide\ConfideUser;
use Einice\Confide\ConfideUserInterface;
class User extends Model implements ConfideUserInterface
{
use ConfideUser;
}
生成控制器和路由
php artisan confide:controller php artisan confide:routes
或者也可以生成 RESTful 风格的控制和路由
php artisan confide:controller --restful php artisan confide:routes --restful
统计信息
- 总下载量: 121
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-04