PHPackages                             digitalcloud/nova-permission-tool - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. digitalcloud/nova-permission-tool

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

digitalcloud/nova-permission-tool
=================================

A Laravel Nova Permission tool.

v1.6(7y ago)142.3k12[2 issues](https://github.com/DigitalCloud/nova-permission-tool/issues)[1 PRs](https://github.com/DigitalCloud/nova-permission-tool/pulls)MITPHPPHP &gt;=7.1.0

Since Dec 17Pushed 5y ago4 watchersCompare

[ Source](https://github.com/DigitalCloud/nova-permission-tool)[ Packagist](https://packagist.org/packages/digitalcloud/nova-permission-tool)[ RSS](/packages/digitalcloud-nova-permission-tool/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (1)Versions (9)Used By (0)

Nova Permission Tool.
=====================

[](#nova-permission-tool)

This tool allows you to create and manage rules and permissions for nova resources. After installation, the default nova resource permissions will be generated for all available resources and resource actions.

Requirements &amp; Dependencies
===============================

[](#requirements--dependencies)

This tool uses [Spatie Permission](https://github.com/spatie/laravel-permission) package.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require digitalcloud/nova-permission-tool
```

You can publish the migration with:

```
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"
```

After the migration has been published you can create the role- and permission-tables by running the migrations:

```
php artisan migrate
```

Usage
-----

[](#usage)

You must register the tool with Nova. This is typically done in the tools method of the NovaServiceProvider, in app/Providers/NovaServiceProvider.php.

```
use DigitalCloud\PermissionTool\PermissionTool;
// ....

public function tools()
{
    return [
        // ...
        new PermissionTool(),
        // ...
    ];
}
```

To allow the tool to generate permissions actions, you need to se the name of the action. Actions with no names will not be generated automatically.

```
