Download the PHP package leonis/apikey-auth without Composer
On this page you can find all versions of the php package leonis/apikey-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package apikey-auth
apikey-auth
API key Authentication for Laravel and Lumen.
安装
配置
Laravel
-
在
config/app.php
注册 ServiceProvider (Laravel 5.5 及以上无需手动注册) -
创建配置文件:
- 运行数据库迁移
lumen
-
在
bootstrap/app.php
注册 ServiceProvider -
复制配置和数据库迁移文件
将
vendor/leonis/apikey-auth/config/config.php
拷贝到config
目录下,并将文件名改成api_key.php
; 将vendor/leonis/apikey-auth/database/migrations
目录中的文件拷贝到database/migrations
目录下。 - 运行数据库迁移
使用
-
修改
auth.php
配置文件中的guards
: -
为用户生成 Api Key :
-
请求 API :
TODO
License
All versions of apikey-auth with dependencies
PHP Build Version
Package Version
Requires
illuminate/support Version
~5.1
The package leonis/apikey-auth contains the following files
Loading the files please wait ....