All Projects → antonioribeiro → artisan-tool

antonioribeiro / artisan-tool

Licence: MIT license
Nova Artisan Tool

Programming Languages

PHP
23972 projects - #3 most used programming language
Vue
7211 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

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 [email protected] instead of using the issue tracker.

Credits

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].