承接 awobaz/eloquent-auto-append 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

awobaz/eloquent-auto-append

Composer 安装命令:

composer require awobaz/eloquent-auto-append

包简介

Automatically append accessors to model serialization

README 文档

README

Eloquent Auto Append automatically appends your accessors to model serialization without having you to explicitly specify them in the $appends array.

Related discussions:

Installation

The recommended way to install Eloquent Auto Append is through Composer

$ composer require awobaz/eloquent-auto-append

Note: Eloquent Auto Append requires Laravel 5.4+.

Usage

Using the Awobaz\AutoAppend\Database\Eloquent\Model class

Simply make your model class derive from the Awobaz\AutoAppend\Database\Eloquent\Model base class. The Awobaz\AutoAppend\Database\Eloquent\Model extends the Eloquent base class without changing its core functionality.

Using the Awobaz\AutoAppend\AutoAppend trait

If for some reasons you can't derive your models from Awobaz\AutoAppend\Database\Eloquent\Model, you may take advantage of the Awobaz\AutoAppend\AutoAppend trait. Simply use the trait in your models.

Disable Auto Append

You may disable Auto Append on a model by setting it's property $autoAppend to false

protected $autoAppend = false;

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Unit Tests

In order to run the test suite, install the development dependencies:

$ composer install --dev

Then, run the following command:

$ vendor/bin/phpunit

Authors

Sponsored by

  • Awobaz - Web/Mobile agency based in Montreal, Canada

License

Eloquent Auto Append is licensed under the MIT License.

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固