niveshsaharan/laravel-passport
Composer 安装命令:
composer require niveshsaharan/laravel-passport
包简介
Laravel Passport Tool for Nova
README 文档
README
A custom tool to manage Passport API keys in Nova
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require niveshsaharan/laravel-passport
Then, register your new link in the tools method of the NovaServiceProvider.
// in app/Providers/NovaServiceProvider.php [..] use Niveshsaharan\LaravelPassport\LaravelPassport; class NovaServiceProvider extends NovaApplicationServiceProvider { [..] public function tools() { return [ // ... (new LaravelPassport())->canSee(function ($request) { return true; //$request->user()->isAdmin(); }), ]; } [..] }
统计信息
- 总下载量: 107
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-01