Skip to content

Laravel Passport for Nova - Created for my personal uses....feel free to send pull requests

Notifications You must be signed in to change notification settings

niveshsaharan/nova-laravel-passport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nova Laravel Passport

A custom tool to manage Passport API keys in Nova

preview

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();
        }),
    ];
}

[..]

}

About

Laravel Passport for Nova - Created for my personal uses....feel free to send pull requests

Resources

Stars

Watchers

Forks

Packages

No packages published