niveshsaharan / laravel-passport
Laravel Passport Tool for Nova
Installs: 107
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 1
Language:Vue
Requires
- php: >=7.1.0
- laravel/nova: ^2.0
- laravel/passport: ^7.3
This package is auto-updated.
Last update: 2025-03-29 00:36:54 UTC
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(); }), ]; } [..] }