riesjart / eloquent-model-trait
此包已被弃用且不再维护。未建议替代包。
为Eloquent模型添加有用方法
v0.1.2
2018-02-22 15:12 UTC
Requires
- php: >=7.1
- illuminate/database: ~5.5.33|5.6.*
- riesjart/static-context-checker: ^0.1
This package is not auto-updated.
Last update: 2020-03-25 22:38:46 UTC
README
当前版本: v0.1.2
此仓库使用 语义版本控制 (SemVer) v2.0.0。
要求
- PHP >= 7.1
- Laravel 5.5 (v5.5.33及更高版本) 或 Laravel 5.6
安装
通过Composer拉取此包。
composer require riesjart/eloquent-model-trait "^0.1"
不需要在您的Laravel应用程序中注册服务提供者。
功能
方法
- createMany (静态)
- fireEvent
- getAppends
- getCrudTimestampFields
- hideRelations
- initRelations
- isBooleanCastable
- isVisible
- softTouch
- throwNotFoundException (静态)
访问器
- getColumnsAttribute
- getWasRecentlyCreatedAttribute
静态获取器
- actualClassNameForMorph
- column
- columns
- guarded
- instance
- instantiated
- keyName
- morphClass
- notFoundException
- table