Nova Artisan Tool
Branch: master
Clone or download
viezel and antonioribeiro Added feature: Whitelisted Commands (#5)
* fix missing white bg on modal

* add the ability to whitelist commands

* fix
Latest commit b1e247f Nov 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Added feature: Whitelisted Commands (#5) Nov 10, 2018
dist Added feature: Whitelisted Commands (#5) Nov 10, 2018
docs/img
resources Added feature: Whitelisted Commands (#5) Nov 10, 2018
routes Initial version Sep 3, 2018
src Added feature: Whitelisted Commands (#5) Nov 10, 2018
.eslintrc Initial version Sep 3, 2018
.gitignore Added feature: Whitelisted Commands (#5) Nov 10, 2018
.prettierrc Initial version Sep 3, 2018
CHANGELOG.md Update changelog Sep 3, 2018
CONTRIBUTING.md Initial version Sep 3, 2018
LICENSE.md Initial version Sep 3, 2018
README.md Added feature: Whitelisted Commands (#5) Nov 10, 2018
composer.json Fix email Sep 3, 2018
mix-manifest.json Remove kernel extension Sep 3, 2018
package.json Initial version Sep 3, 2018
webpack.mix.js Initial version Sep 3, 2018
yarn.lock Initial version Sep 3, 2018

README.md

Artisan Tool

The power of Artisan in Nova

Latest Version on Packagist

Screenshots

screenshot1

screenshot1

screenshot1

Installation

You can install the package in to a Laravel app that uses Nova 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

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:

<?php

return [
    'whitelistedCommands' => [
        \Illuminate\Cache\Console\ClearCommand::class,
        \Illuminate\Foundation\Console\ViewClearCommand::class,
        \Illuminate\Foundation\Console\RouteClearCommand::class,
    ],
];

Usage

Click on the "artisan-tool" menu item in your Nova app to see the tool provided by this package.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email acr@antoniocarlosribeiro.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.