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
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-04