PHPackages                             pragmarx/artisan-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. pragmarx/artisan-tool

ActiveLibrary

pragmarx/artisan-tool
=====================

Brings Artisan to Nova

v0.4.0(6y ago)3490.1k↓23.5%13[5 issues](https://github.com/antonioribeiro/artisan-tool/issues)MITPHPPHP &gt;=7.1.0

Since Sep 3Pushed 6y ago2 watchersCompare

[ Source](https://github.com/antonioribeiro/artisan-tool)[ Packagist](https://packagist.org/packages/pragmarx/artisan-tool)[ Docs](https://github.com/pragmarx/artisan-tool)[ RSS](/packages/pragmarx-artisan-tool/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

Artisan Tool
============

[](#artisan-tool)

The power of Artisan in Nova
----------------------------

[](#the-power-of-artisan-in-nova)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4c5df0d9fefee3c857c1bfa97a09e15b0b06284ed8c979ee6b1c6ac0cfe0d05f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f707261676d6172782f6172746973616e2d746f6f6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pragmarx/artisan-tool)

### Screenshots

[](#screenshots)

[![screenshot1](docs/img/screenshot-1.png)](docs/img/screenshot-1.png)

[![screenshot1](docs/img/screenshot-2.png)](docs/img/screenshot-2.png)

[![screenshot1](docs/img/screenshot-3.png)](docs/img/screenshot-3.png)

### Installation

[](#installation)

You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require pragmarx/artisan-tool
```

Next up, you must register the tool with Nova. This is typically done in the `tools` method of the `NovaServiceProvider`.

```
// in app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...
        new \PragmaRX\ArtisanTool\Tool(),
    ];
}
```

### Whitelist Commands

[](#whitelist-commands)

Optionally, You can use the `whitelistedCommands` to only display a selected list of commands in the nova tool. It is often not a great idea to have every available command in production, e.g. migrate:reset.

Start by publishing the config file:

```
php artisan vendor:publish --provider="PragmaRX\ArtisanTool\ToolServiceProvider" --tag="config"
```

Next, add your commands to the `config/artisan-tool.php` file:

```
