Paul Murkin

Results 5 comments of Paul Murkin

Hello! You have to write all this yourself. A few ideas: 1) Override the method actionCreate in the controller - UserController 2) Override the method create in the model -...

If you execute the query: http://hostname.local/api/user/1?include=role you will get: ``` { "data": { "type": "user", "id": "1", "attributes": { "full_name": "Администратор", "email": "[email protected]", "role_id": 1, "created_at": "2017-07-20T22:39:57+0000", "updated_at": "2017-07-20T22:39:57+0000", "created_by":...

Hi! > I'll dig about the reason. Look at this code: https://github.com/kot13/bootstrapi/blob/master/app/src/Common/JsonApiEncoder.php 37-38 lines

It seems that it is identical: https://gist.github.com/kot13/64620a77986cb866ab39bb5d55071a4e

@gdm85 yes, i able to reproduce.