Download the PHP package deetoo/essentials without Composer
On this page you can find all versions of the php package deetoo/essentials. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deetoo/essentials
More information about deetoo/essentials
Files in deetoo/essentials
Informations about the package essentials
Essentials
DeeToo Essentials provides tools that enhances your Laravel experience.
Models
The DeeToo Model provides an extra layer of validation to protect you against yourself. If validates the data before you save it to the database and verifies if a relation actually exists. It also provides nice additional features like read only properties and value objects.
Each type can be set as nullable and have a default value:
Each different type can have his own options on top:
You can extend and create new value object as well:
Where the serialize
array is the list of values that will be serialized when the Model is converted to Array/Json.
You can also create your own types:
You can add options that you can chain. All you need is to validate them accordingly in the validate
method.
Filters
The DeeToo Filters and easy way to provide human readable api filters your Eloquent Models.
You can use any of the predefined filters or create your own by implementing the FilterContract
Filter | Description |
---|---|
Equals | A field is equal to a value |
InArray | A field is equal to any value in an array |
NotEquals | A field is not equal to a value |
NotInArray | A field is not equal to any value in an array |
Search | A list of fields starts with a value :value% |
All versions of essentials with dependencies
doctrine/inflector Version ~1.0
laravel/framework Version ^5.4
umpirsky/country-list Version ^2.0