定制 pragmarx/artisan-tool 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pragmarx/artisan-tool

最新稳定版本:v0.4.0

Composer 安装命令:

composer require pragmarx/artisan-tool

包简介

Brings Artisan to Nova

README 文档

README

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.

统计信息

  • 总下载量: 89.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 34
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 34
  • Watchers: 2
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-03