定制 laravel-enso/services 二次开发

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

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

laravel-enso/services

最新稳定版本:3.7.2

Composer 安装命令:

composer require laravel-enso/services

包简介

Service manager for Laravel Enso

README 文档

README

License Stable Downloads PHP Issues Merge Requests

Description

Services manages sellable service records inside Laravel Enso.

The package ships the service model, CRUD endpoints, validation, options lookup, form builders, and a server-side table builder for the administration UI. It is intended for Enso applications that need reusable service catalog entries alongside products and measurement units.

Installation

Install the package:

composer require laravel-enso/services

Run the package migrations:

php artisan migrate

Optional publish:

php artisan vendor:publish --tag=services-factories

Features

  • CRUD endpoints for service records.
  • Form builders for create and edit flows backed by service.json.
  • Server-side table builder backed by services.json.
  • Options endpoint for async selects through OptionsBuilder.
  • Supplier pivot payload support in the form builder and validator.
  • Factories and feature coverage for forms, options, and datatable flows.

Usage

The package mounts its routes automatically through AppServiceProvider.

Main flows:

  • create and edit forms through LaravelEnso\Services\Forms\Builders\Service
  • datatable bootstrap and rows through LaravelEnso\Services\Tables\Builders\Service
  • select options through LaravelEnso\Services\Http\Controllers\Options

Validation is handled by LaravelEnso\Services\Http\Requests\ValidateService, which requires:

  • measurement_unit_id
  • name
  • unique code
  • positive list_price
  • integer vat_percent
  • optional supplier rows with acquisition prices

API

Mounted under api/services:

  • GET create
  • POST /
  • GET {service}/edit
  • PATCH {service}
  • DELETE {service}
  • GET initTable
  • GET tableData
  • GET exportExcel
  • GET options

Depends On

Required Enso packages:

Companion frontend package:

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-25