rtablada / eloquent-show-me
Allows `shown` property on Eloquent Models
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/rtablada/eloquent-show-me
Requires
- php: >=5.3.0
- illuminate/database: 4.0.x
This package is not auto-updated.
Last update: 2025-10-21 11:35:28 UTC
README
In your composer.json include rtablada/eloquent-show-me. Then in your app/config/app.php, you can change your Eloquent alias to Rtablada\EloquentShowMe\Model.
Use
Adding a $includeInToArray array will tell Eloquent to always include those mutated attributes in any toArray or toJson calls.
Example
class Sprite extends \Rtablada\EloquentShowMe\Model { $includeInToArray = array( 'photoUrl' ); }