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

Just some questions #46

Open
julienmiclo opened this issue Jan 7, 2019 · 0 comments
Open

Just some questions #46

julienmiclo opened this issue Jan 7, 2019 · 0 comments

Comments

@julienmiclo
Copy link

Hello,

i discovered your blog and i love this structure more easier but i have some questions with relationship.

PUT /users/1 => update user information
{
	'user': {
		'metas': [
			{
				'name: 'Name 1',
				'value': 'Value 1'
			},
			{
				'name: 'Name 2',
				'value': 'Value 2'
			}
		]
	}
}
  1. How work relationship ?
    I can't understand where to put method for checking if parameter is in request and create/update data in request.

  2. How to load relationship ?
    In older work i have in my model protected $with = ['author']; but this code doesn't work.

Thank you.

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

No branches or pull requests

1 participant