lara-zeus/chaos 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

lara-zeus/chaos

最新稳定版本:2.0.1

Composer 安装命令:

composer require lara-zeus/chaos

包简介

README 文档

README

Chaos is the mythological void state preceding the creation of the universe.

Latest Version on Packagist Tests Code Style Total Downloads Total Downloads

💖 if you think this has potential, star ⭐️ the project to let me know :)

Support Filament

filament-logo

Opinionated Filament Setup

provide extra layer between you app and Filament, dont worry about generic column like timestamps and stuff.

and some more perks, more details coming soon.

Installation:

composer require lara-zeus/chaos

ChaosModel trait:

  • add action by
  • checks for isUsingActionBy and isUsingSoftDelete

'ChaosResource' to extend all resources

  • set lang file per resource
  • set the Model Label and Plural Model Label
  • add the soft delete scope
  • lazy load the actions by relations

ChaosForms class

  • all forms will have the same looks and functionalty
  • add a side column for timestamps and action by
  • you can add side section
  • usage:
public static function form(Form $form): Form
{
    return ChaosForms::make($form, [
        Section::make()
            ->columnSpanFull()
            ->columns()
            ->schema([
                //
            ]),
    ]);
}

ChaosInfos

ChaosTables

  • add timestamps columns, hidden by default
  • add actions by with popover for user info
  • add all defualt actions per row
    • view
    • edit
    • delete
    • force delete
    • restore
  • add soft delete filters
  • set pagination 25
  • set default sort by id desc
  • set bulk actions
  • usage:
public static function table(Table $table): Table
{
    return ChaosTables::make(
        static::class,
        $table,
        columns:[
            //
        ],
        actions: [
            //
        ],
        bulkActions: [
            //
        ],
        filters: [
            //
        ]
    );
}

ChaosEditRecord class

  • add header actions:
    • view and delete

ChaosListRecords class

  • add header actions:
    • create

ChaosViewRecord class

  • add header actions:
    • edit

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

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