rtablada/eloquent-show-me

There is no license information available for the latest version (dev-master) of this package.

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

dev-master 2013-08-05 18:21 UTC

This package is not auto-updated.

Last update: 2025-10-07 11:23:53 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'
	);
}