Download the PHP package wearepixel/laravel-model-objects without Composer
On this page you can find all versions of the php package wearepixel/laravel-model-objects. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wearepixel/laravel-model-objects
More information about wearepixel/laravel-model-objects
Files in wearepixel/laravel-model-objects
Package laravel-model-objects
Short Description A package to easily serialize a Laravel model to be stored in a database for disconnected model access.
License MIT
Homepage https://github.com/wearepixel/laravel-model-objects
Informations about the package laravel-model-objects
Laravel Model objects
A package to easily retrieve model objects for easy storage in Laravel
Key Features
- [x] Retrieve an object from a model
- [x] Hide fields from the object by using the
$hiddenProperties
array property - [ ] Hide relationships from the object by setting a config value
Installation
You can install the package via composer:
Usage
Configuration
Publshing The Configuration
The configuration file looks like this:
If you need to make any changes to the configuration, feel free to publish the configuration file.
Hiding Model Attributes
This package will automatically hide any additional fields, you add into $hiddenProperties
array property.
This is useful for scenarios where you don't need to store all fields in the object, or you want to hide sensitive information.
Testing
License
The MIT License (MIT). Please see License File for more information.