You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Usage: Emberize::make($model or $collection)
2. Sideload,embed,links
2. (Not Yet)Polymorphic relationships.
3. Public keys(GUID, email, username, etc as id)
4. Change attributes,relationships dynamically(If authorized then include user relationship in json)
Installation
1. Add the following to your composer.json "require" array
"breadam/emberize": "dev-master"
2. Add the following to your app/config/app.php "providers" array
"Breadam\Emberize\EmberizeServiceProvider"
3. Update composer
composer update
4. Publish config file
php artisan config:publish breadam/emberize
5. Edit app/config/packages/breadam/emberize/config.php to your needs
Set default mode. If "null", Emberize will prepare only primary keys of relationships
value: null,sideload,embed,link
default: null
identifier:
If set, Emberize will use "key" as the primary key name and "value" attribute as primary key value. If not set, Emberize will use $model->getKeyName() and $model->getKey()
value:
"identifier" => array(
"key" => string,
"value" => string
)
default:
"identifier" => array(
"key" => $model->getKeyName(),
"value" => $model->getKey()
)