codicastudio / artisan
A random Codica Studio package.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: ^7.4 || ^8.0
This package is auto-updated.
Last update: 2024-10-25 14:21:54 UTC
README
This Nova tool lets you:
- run artisan commands
- specify options for commands
- get command result
- view commands history
Installation
You can install the nova tool in to a Laravel app that uses Nova via composer:
composer require guratr/nova-command-runner
Next up, you must register the tool with Nova. This is typically done in the tools
method of the NovaServiceProvider
.
// in app/Providers/NovaServiceProvder.php // ... public function tools() { return [ // ... new \Guratr\CommandRunner\CommandRunner, ]; }
Publish the config file:
php artisan vendor:publish --provider="Guratr\CommandRunner\ToolServiceProvider"
Add your commands to config/nova-command-runner.php
Available options:
- run : command to run (E.g. route:cache)
- options : arrary of options for command (e.g. ['--allow' => ['127.0.0.1']])
- type : button class (primary, secondary, success, danger, warning, info, light, dark, link)
- group: Group name (optional)
Usage
Click on the "Command Runner" menu item in your Nova app to see the tool.