acacha/names 问题修复 & 功能扩展

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

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

acacha/names

Composer 安装命令:

composer require acacha/names

包简介

Provides alternative names to Laravel models.

README 文档

README

Provides alternatives names to Laravel 5 models.

Installation

composer require acacha/names

Migrations

Run:

php artisan migrate

To add names table to you Laravel project. Is not necessary to modify existent Model tables to add alternatives names to an existing model.

Use

Basically this package uses Laravel polymorphic-relations (1) to add alternative names to models.

You only have to add trait Acacha\Names\Nameable to you model:

class MyModel extends Model {
    use Nameable;    
    ...
}

This will add polimorphic relation names() that gives access to alternative model names:

mymodel->names();

Specifications

Table names

Columns:

  • id
  • shortname: Model/resource short name.
  • fullname: resource fullname.
  • nickname: resource nickname.
  • code: resource code.
  • description: resource description.
  • notes: resource notes.
  • nameable_type : nameable object class
  • nameable_id: nameable object id

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-11-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固