定制 onoma/enye-generator 二次开发

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

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

onoma/enye-generator

最新稳定版本:1.0.1

Composer 安装命令:

composer require onoma/enye-generator

包简介

a simple laravel package using livewire for reusable field components for forms that atteached enye

README 文档

README

Enye Generator is a Laravel + Livewire package that provides reusable, dynamic form field components Instead of typing field code manually, just click a button and let Enye insert on the field for you.

Features

  • Reusable Livewire components for common form fields
  • Automatically updates Livewire model properties using Livewire events
  • Simple and clean integration into existing Laravel + Livewire projects
  • Customizable component views for your UI needs
  • Generate enye through an interactive UI — no typing needed

Installation

Install the package via Composer:

composer require onoma/enye-generator

Usage

Step 1: Add the HasModelUpdater Trait To enable automatic property updates, add this trait to your parent Livewire component:

use Livewire\Component;
use Onoma\EnyeGenerator\Traits\HasModelUpdater;

class MyFormComponent extends Component
{
    use HasModelUpdater;

    public string $name = '';
    public string $email = '';
}

Step 2: Use Enye Field Components in Blade

These components emit events that automatically update the corresponding properties, thanks to the trait.

  <livewire:field type='{input type}' placeholder='{placeholder name (optional)}' model='{parent model name}' wire:model='{parent model name}' />

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-31