riesjart / eloquent-model-trait
This package is abandoned and no longer maintained.
No replacement package was suggested.
Addition of useful methods for Eloquent models
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
Current release: v0.1.2
This repository uses Semantic Versioning (SemVer) v2.0.0.
Requirements
- PHP >= 7.1
- Laravel 5.5 (v5.5.33 and higher) or Laravel 5.6
Installation
Pull this package in through Composer.
composer require riesjart/eloquent-model-trait "^0.1"
There is no service provider that needs to be registered in your Laravel application.
Features
Methods
- createMany (static)
- fireEvent
- getAppends
- getCrudTimestampFields
- hideRelations
- initRelations
- isBooleanCastable
- isVisible
- softTouch
- throwNotFoundException (static)
Accessors
- getColumnsAttribute
- getWasRecentlyCreatedAttribute
Static getters
- actualClassNameForMorph
- column
- columns
- guarded
- instance
- instantiated
- keyName
- morphClass
- notFoundException
- table