3x1io / filament-commands
为 [laravel:artisan] gui 专为酷 kids 设计的精美包。
v1.1.3
2024-04-06 15:55 UTC
Requires
- php: ^7.3|^8.0
README
Filament Artisan Commands GUI
一个简单但功能强大的库,用于运行一些 artisan 命令。此包是基于 artisan-gui 的分支,并针对 Filament UI 进行了一些定制。
注意 V3 用户请使用此 repo
安装
您可以通过 composer 安装此包
composer require 3x1io/filament-commands
默认情况下,包具有预定义的配置、内联样式和脚本。从版本 1.4
开始,您可以将 css 和 js 文件等供应商发布到 vendor/artisan-gui
php artisan vendor:publish --provider="io3x1\FilamentCommands\FilamentCommandsProvider"
仅发布配置
php artisan vendor:publish --tag="artisan-gui-config"
仅发布样式和脚本
php artisan vendor:publish --tag="artisan-gui-css-js"
运行命令
默认情况下,您只能在本地环境中访问此页面。如果您愿意,可以更改配置中的 local
键。
只需访问 http://you-domain.com/admin/artisan
,然后我们就可以开始了!从列表中选择所需的命令,填写参数和选项/标志,然后点击 运行
按钮。
配置
默认配置是
<?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 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' => [ // ... ] ];
现在清除缓存
php artisan optimize:clear
更新日志
请参阅 CHANGELOG 以获取有关最近更改的更多信息。
鸣谢
许可证
MIT 许可证 (MIT)。请参阅 许可证文件 以获取更多信息。