ehtasham89 / laravel-apiauth-driver
Laravel 4.* 的 RESTful API 认证驱动
dev-master
2016-11-10 13:19 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ~5.0
- illuminate/support: 4.2.*
This package is not auto-updated.
Last update: 2024-09-18 18:45:45 UTC
README
laravel-apiauth-driver
Laravel 4.2 的 RESTful API 认证驱动
安装指南
在你的 Laravel composer.json 文件中的 require 数组中包含以下行
"ehtasham89/laravel-apiauth-driver": "dev-master"
将以下服务提供者链接放置在 app/config/app.php 的 providers 数组中
'Ehtasham89\LvApiAuth\LvApiAuthServiceProvider',
'Ehtasham89\LvApiAuth\Reminders\ReminderServiceProvider',
在 app/config/app.php 的 providers 数组中注释以下服务提供者
//'Illuminate\Auth\Reminders\ReminderServiceProvider',
在 app/config/auth.php 中将驱动名称更改为 'driver' => 'lvapiauth',
API 配置
通过 composer 运行以下命令
php artisan config:publish ehtasham89/laravel-apiauth-driver
它将在 app/config/packages/ehtasham89/laravel-apiauth-driver/
中创建 config.php 文件的副本
在 app/config/packages/ehtasham89/laravel-apiauth-driver/config.php
中添加你的 API 的端点