定制 solution-forest/filament-scaffold 二次开发

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

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

solution-forest/filament-scaffold

最新稳定版本:0.0.10

Composer 安装命令:

composer require solution-forest/filament-scaffold

包简介

This is my package filament-scaffold

README 文档

README

Latest Version on Packagist Total Downloads

Description

Filament scaffold is a toolkiit for Filament Admin that simplifies the generation of resources. It can automatically generate models, resources, migration files, and more, creating corresponding forms and table views based on the database table. Filament scaffold aims to speed up development and reduce the time spent writing repetitive code.

Features

  • Automatic Filament Resource Generation: Generates Filament resource files, including forms and table views, based on specified table names.

  • Support for Multiple Resource Types: Can generate models, migration files, factories, controllers, and more.

  • Dynamic Form Generation: Automatically generates form fields based on database table structure.

  • Seamless Integration with Laravel and Filament: Utilizes Laravel's Artisan commands and Filament's extension mechanism for efficient resource management.

Installation

You can install the package via composer:

composer require solution-forest/filament-scaffold

Then, you need to connect to the database in the .env file.

In your preject, app\Providers\Filament\xxxPanelProvider.php add this code:

use Solutionforest\FilamentScaffold\FilamentScaffoldPlugin;

public function panel(Panel $panel): Panel
    {
        return $panel
            ..., 
            ->plugin(FilamentScaffoldPlugin::make());
    }

Publishing Configuration file

To publish the configuration file, use:

php artisan vendor:publish --provider="Solutionforest\FilamentScaffold\FilamentScaffoldServiceProvider" --tag="filament-scaffold-config"

You can turn to false to unable the form.

return [
    'enabled' => false,
];

Usage

In your admin page will have a Scaffolds from. You can choose the table from the connected database or create other table in the form. Then, you can click the "Create" button to create the reesource, model or migration.

Note

In the resource file, for the table, the table column type default is TextColumn. For the form, the type defualt is TextInput.

Preview

demo2.mp4

image

image image image image

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 60
  • Watchers: 3
  • Forks: 17
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-24