2017 © Pedro Peláez
 

library eloquent-show-me

Allows `shown` property on Eloquent Models

image

rtablada/eloquent-show-me

Allows `shown` property on Eloquent Models

  • Monday, August 5, 2013
  • by rtablada
  • Repository
  • 1 Watchers
  • 3 Stars
  • 0 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Installation

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., (*1)

Use

Adding a $includeInToArray array will tell Eloquent to always include those mutated attributes in any toArray or toJson calls., (*2)

Example

```php, (*3)

class Sprite extends \Rtablada\EloquentShowMe\Model { $includeInToArray = array( 'photoUrl' ); }, (*4)

The Versions

05/08 2013

dev-master

9999999-dev

Allows `shown` property on Eloquent Models

  Sources   Download

The Requires