Looking to hire Laravel developers? Try LaraJobs

laravel-passport maintained by niveshsaharan

Description
Laravel Passport Tool for Nova
Last update
2019/08/01 08:27 (dev-master)
License
Links
Downloads
107
Tags

Comments
comments powered by Disqus

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

[..]

}