kharanenka/laravel-scope-active
最新稳定版本:1.0.3
Composer 安装命令:
composer require kharanenka/laravel-scope-active
包简介
Scope for field 'active' (bool)
README 文档
README
You can use trait in your models with "active" field (bool)
#Installation
Require this package in your composer.json and update composer.
"kharanenka/laravel-scope-active": "1.0.*"
Usage
class MyModel extend Model {
use Kharanenka\Scope\ActiveField;
...
}
$obElement = MyModel::active()->first();
$obElement = MyModel::notActive()->first();
统计信息
- 总下载量: 39.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2016-09-28