mastani / nova-git-manager
Laravel Nova Git Manager tool.
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-11-16 12:10:28 UTC
README
This is a package for Laravel Nova which allows you to easily manage your Git.
Screeenshots
Requirements
- PHP >= 7.1
- Laravel application with Laravel Nova installed
shell_exec
function enabled (For running git log/checkout/pull commands). See usage
Installation
Install the package via composer:
$ composer require mastani/nova-git-manager
Register the tool in the tools
method of the NovaServiceProvider
:
// app/Providers/NovaServiceProvider.php
// ...
public function tools()
{
return [
// ...
new \Mastani\NovaGitManager\NovaGitManager,
];
}
Customizations (Optional)
If you want to change the "Git Path" or "Commit URL" you can publish the config file:
php artisan vendor:publish --provider="Mastani\NovaGitManager\ToolServiceProvider" --tag="config"
Now head over to "config/nova-git-manager.php" and you can change the value:
/*
|--------------------------------------------------------------------------
| Git root path
|--------------------------------------------------------------------------
|
| Determine the default Git root path
| Default is your project base path.
|
*/
'git_path' => base_path(),
/*
|--------------------------------------------------------------------------
| Commit base url
|--------------------------------------------------------------------------
|
| Determine the default Git commit url
| Example for Github: https://github.com/your_username/your_repository/commit/%s
| Example for Gitlab: https://gitlab.com/your_username/your_repository/-/commit/%s
|
*/
'commit_url' => 'https://github.com/your_username/your_repository/commit/%s'
Contributors
License
The MIT License (MIT). Please see License File for more information.