larabeans/core
Composer 安装命令:
composer require larabeans/core
包简介
Apiato container to contains parent classes or common code used by all containers provided by Larabeans.
README 文档
README
Larabeans > Core
Core
APIATO container that contains parent classes or common code used by all containers provided by Larabeans.
Overview
Config
Parents
Adds parent models, extending Apiato parent models under parent namespace.
- Parents/Models/Model.php
Models
Below models are provided as default models having modification required for UUID or tenant. You can extend these or implement you own. Don't forget to update config file accordingly.
- Core/Models/User.php
- Core/Models/Role.php
- Core/Models/Permission.php
- Core/Parents/Models/Model.php
Note: Above model uses below listed traits, and these are commented by default, before proceeding to data migration, un comments as per your requirement. Just make sure relevant container is already installed.
Traits
Reusable Traits
- HasUuid (Works along with uuider container)
- MultiTenantable (Works along with tenanter container)
- HasLocation (Works along with locationer container)
- HasLocations (Works along with locationer container)
- HasMobileLocation (Works along with locationer container)
Scopes
- MultiTenantableScope (Works along with tenanter container)
- Update CreateRoleRequest file to remove unique name rule and add ( 'name' => 'required|min:2|max:20|no_spaces' )
统计信息
- 总下载量: 1.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-17