infureal/artisan-gui

专为酷 kids 设计的 [laravel:artisan] gui 美观包。

安装次数: 331,758

依赖关系: 1

建议者: 0

安全: 0

星标: 356

关注者: 5

分支: 55

语言:Vue

v2.0.1-beta2 2022-03-02 11:09 UTC

This package is auto-updated.

Last update: 2024-09-18 23:01:23 UTC


README

该包现在处于非常缓慢的开发中。它并未被放弃,您仍然可以使用它。

目前,已经开始开发新包。 #34

Artisan GUI

:artisan gui

Packagist License Packagist Version Packagist Downloads Packagist PHP Version Support GitHub code size in bytes

简单的但功能强大的库,用于运行一些 artisan 命令。

要求

  • Laravel 8.*
  • php ^7.3

安装

只需安装包

composer require infureal/artisan-gui

安装 2.0.0@beta

composer require infureal/artisan-gui:2.0.0@beta

发布供应商

默认情况下,包具有预定义的配置、内联样式和脚本。从版本 1.4 开始,您可以在 vendor/artisan-gui 中发布供应商,如 css 和 js 文件。

php artisan vendor:publish --provider="Infureal\Providers\GuiServiceProvider"

仅发布配置

php artisan vendor:publish --tag="artisan-gui-config"

仅发布样式和脚本

php artisan vendor:publish --tag="artisan-gui-css-js"

运行命令

默认情况下,您只能在本地环境中访问此页面。如果您愿意,可以更改配置中的 local 键。

简单地去到 http://you-domain.com/~artisan,然后我们出发!从列表中选择所需的命令,填写参数和选项/标志,然后点击 运行 按钮。

v2 新特性

  • 迁移到 SPA/Vue
  • UI 更改为更易读的(个人看法)
  • 实现搜索(由于新设计,不使用搜索难以找到某些命令)
  • 在配置中添加了权限字段(以实现更灵活的调整)
  • 添加了数组选项字段

配置

默认配置是

<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Middleware list for web routes
    |--------------------------------------------------------------------------
    |
    | You can pass any middleware for routes, by default it's just [web] group
    | of middleware.
    |
    */
    'middlewares' => [
        'web',
//        'auth'
    ],

    /*
    |--------------------------------------------------------------------------
    | Route prefix
    |--------------------------------------------------------------------------
    |
    | Prefix for gui routes. By default url is [/~artisan-gui].
    | For your wish you can set it for example 'my-'. So url will be [/my-artisan-gui].
    |
    | Why tilda? It's selected for prevent route names correlation.
    |
    */
    'prefix' => '~',

    /*
    |--------------------------------------------------------------------------
    | Home url
    |--------------------------------------------------------------------------
    |
    | Where to go when [home] button is pressed
    |
    */
    'home' => '/',

    /*
    |--------------------------------------------------------------------------
    | Only on local
    |--------------------------------------------------------------------------
    |
    | Flag that preventing showing commands if environment is on production
    |
    */
    'local' => true,
    
    /*
    |--------------------------------------------------------------------------
    | List of command permissions
    |--------------------------------------------------------------------------
    |
    | Specify permissions to every single command. Can be a string or array
    | of permissions
    |
    | Example:
    |   'make:controller' => 'create-controller',
    |   'make:event' => ['generate-files', 'create-event'],
    |
    */
    'permissions' => [
    ],
    
    /*
    |--------------------------------------------------------------------------
    | List of commands
    |--------------------------------------------------------------------------
    |
    | List of all default commands that has end of execution. Commands like
    | [serve] not supported in case of server side behavior of php.
    | Keys means group. You can shuffle commands as you wish and add your own.
    |
    */
    'commands' => [
        // ...
    ]

];

问题

如果有任何问题,请 联系我