承接 neon/attributable 相关项目开发

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

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

neon/attributable

最新稳定版本:3.0.0-alpha-9

Composer 安装命令:

composer require neon/attributable

包简介

README 文档

README

Handles advanced attibutes related to any kind of models. The reason of this solution is the Neon CMS' best practice: If customer needs an option, like "show this e-mail on the company's page", we can add that e-mail, like an attribute via the admin UI and just handle the variable on template, and then, no programers needed to show anything on the given page.

Requirements

  • "neon/model-uuid": "^1.0"

Install

Easily install the composer package:

composer require neon/attributable

Then you should install database migrations by:

php artisan vendor:publish --provider=\"Neon\\Attributable\\NeonAttributableServiceProvider\"

Usage

Just use the Trait like othes traits. Don't forget to use the neon/model-uuid trait too:

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Neon\Attributable\Models\Traits\Attributable;
use Neon\Models\Traits\Uuid;

class AwesomeModel extends Model
{
    use Attributable;
    use Uuid;

    ...

}

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-04