Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get default attributes for schemas and hydrators from model fillable attribute #51

Conversation

pedroluislopez
Copy link

This implementation uses fillable attributes from eloquent models to avoid repetition of these attributes declaration in the schema and hydrator classes (by default, if attributes are declared in schema/hydrator class, these are used).

@pedroluislopez pedroluislopez changed the base branch from master to develop March 1, 2017 11:08
@lindyhopchris lindyhopchris merged commit 96b7af8 into cloudcreativity:develop Mar 1, 2017
@lindyhopchris
Copy link
Member

@pedroluislopez

thanks for this PR and the feature suggestion. I've merged with develop but won't be tagging immediately as I need to see what other changes I might include in the next release.

If you want to use now, set "minimum-stability": "dev" in your composer.json and then:

$ composer require cloudcreativity/laravel-json-api:^0.7

That will pull in the develop branch (which will eventually become 0.7.0)

@pedroluislopez
Copy link
Author

@lindyhopchris Ok, thanks.

@lindyhopchris
Copy link
Member

This has been released as v0.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants