承接 tomatophp/filament-artisan 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

tomatophp/filament-artisan

最新稳定版本:v1.1.4

Composer 安装命令:

composer require tomatophp/filament-artisan

包简介

Simple but yet powerful library for running some artisan commands for FilamentPHP

README 文档

README

Screenshot

Filament Artisan Command Runner

Latest Stable Version License Downloads

Simple but yet powerful library for running some artisan commands for FilamentPHP

Screenshots

Commands List Commands Form Commands Output

Installation

composer require tomatophp/filament-artisan

finally reigster the plugin on /app/Providers/Filament/AdminPanelProvider.php

->plugin(\TomatoPHP\FilamentArtisan\FilamentArtisanPlugin::make())

Running command

By default, you can access this page only in local environment. If you wish you can change local key in config.

Simply go to http://you-domain.com/PANEL/artisan and here we go! Select needed command from list, fill arguments and options/flags and hit run button.

Configuration

Default config is:

<?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' => [
        // ...
    ]

];

and now clear cache

php artisan optimize:clear

Publish Assets

you can publish config file by use this command

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

you can publish views file by use this command

php artisan vendor:publish --tag="filament-artisan-views"

you can publish languages file by use this command

php artisan vendor:publish --tag="filament-artisan-lang"

Other Filament Packages

Checkout our Awesome TomatoPHP

统计信息

  • 总下载量: 58.94k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 30
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 30
  • Watchers: 1
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-08