Download the PHP package cav-s-a/nova-advanced-command-runner without Composer
On this page you can find all versions of the php package cav-s-a/nova-advanced-command-runner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package nova-advanced-command-runner
Laravel Nova tool for running Artisan & Shell commands.
This Nova tool lets you run artisan and bash commands directly from nova.
This is an extended version of the original package Nova Command Runner by guratr
Features
- Run predefined artisan and shell commands
- Run custom artisan and shell commands
- Use variables while running commands
- Prompt the user to specify optional flags while running commands
- Use predefined values for variables using a select box or prompt the user to enter a value for the variable.
- Keep track of command run history
- No database changes required. Everything is managed from a single config file.
- Queue long running commands
Installation
You can install the nova tool in to a Laravel app that uses Nova via composer:
Next up, you must register the tool with Nova. This is typically done in the tools
method of the NovaServiceProvider
.
Publish the config file:
Add your commands to config/nova-advanced-command-runner.php
Usage
Click on the "Command Runner"
menu item in your Nova app to see the tool.
Configuration
All the configuration is managed from a single configuration file located in config/nova-advanced-command-runner.php
Adding Commands
All the commands which needs to be easily accessible should be defined in the commands
array
in the configuration file.
Command Options
- run : command to run (E.g. route:cache)
- type : button class (primary, secondary, success, danger, warning, info, light, dark, link)
- group: Group name (optional)
- variables : Array of variables used in the command(optional)
- command_type : Type of the command.(artisan or bash. Default artisan)
- flags : Array of optional flags for the command(optional)
Examples
Other Customizations
Screenshots
Credits
Contributing
Thank you for considering contributing to this package! Please create a pull request with your contributions with detailed explanation of the changes you are proposing.
Security Vulnerabilities
If you found a security vulnerability with in this package, Please do not use the issue tracker. Instead send an email to [email protected]
. All security vulnerabilities are addressed promptly.
License
This package is open-sourced software licensed under the MIT license.