iget-master/api-base

此包的最新版本(dev-master)没有可用的许可证信息。

Laravel 5.2 API 的基础API

dev-master 2016-02-03 19:44 UTC

This package is auto-updated.

Last update: 2024-08-28 06:22:52 UTC


README

描述在这里。

安装指南

  • 在composer中要求iget-master/api-base
  • app.php配置文件中添加Iget\ApiBase\ApiBaseServiceProvider::class服务提供者。

可选步骤

启用基于令牌的身份验证

  • auth.php配置文件中将auth-token设置为Guard Driver。
  • 在您的API路由上仅使用Iget\ApiBase\Http\Middleware\Authenticate::class中间件。

配置用户提供者以使用我们的用户模型

  • Iget\ApiBase\Models\User设置为您的用户提供者的模型