{"action":"opened","issue":{"url":"https://api.github.com/repos/64robots/nova-fields/issues/49","repository_url":"https://api.github.com/repos/64robots/nova-fields","labels_url":"https://api.github.com/repos/64robots/nova-fields/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/64robots/nova-fields/issues/49/comments","events_url":"https://api.github.com/repos/64robots/nova-fields/issues/49/events","html_url":"https://github.com/64robots/nova-fields/issues/49","id":390329274,"node_id":"MDU6SXNzdWUzOTAzMjkyNzQ=","number":49,"title":"resolveUsing not working on Row","user":{"login":"idragon81","id":7294519,"node_id":"MDQ6VXNlcjcyOTQ1MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/7294519?v=4","gravatar_id":"","url":"https://api.github.com/users/idragon81","html_url":"https://github.com/idragon81","followers_url":"https://api.github.com/users/idragon81/followers","following_url":"https://api.github.com/users/idragon81/following{/other_user}","gists_url":"https://api.github.com/users/idragon81/gists{/gist_id}","starred_url":"https://api.github.com/users/idragon81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idragon81/subscriptions","organizations_url":"https://api.github.com/users/idragon81/orgs","repos_url":"https://api.github.com/users/idragon81/repos","events_url":"https://api.github.com/users/idragon81/events{/privacy}","received_events_url":"https://api.github.com/users/idragon81/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-12T17:24:05Z","updated_at":"2018-12-12T17:24:05Z","closed_at":null,"author_association":"NONE","body":"resolveUsing is not working when directly applying on row or it's children\r\n\r\n**Directly on Row Field**\r\n```\r\nRow::make('Items', [\r\n                    Text::make(\"Name\")->fieldClasses('w-full px-8 py-6')\r\n                        ->hideLabelInForms(),\r\n                    Text::make(\"Quantity\")->fieldClasses('w-full px-8 py-6')\r\n                        ->hideLabelInForms()->readOnly(),\r\n                    Text::make(\"Price\")->fieldClasses('w-full px-8 py-6')\r\n                        ->hideLabelInForms()->readOnly(),\r\n                ])->hideWhenUpdating()->hideWhenCreating()->resolveUsing(function () {\r\n                    return $this->someValue;\r\n                }),\r\n```\r\n**On Row Children**\r\n```\r\n  Row::make('Items', [\r\n                    Text::make(\"Name\")->fieldClasses('w-full px-8 py-6')\r\n                        ->hideLabelInForms()\r\n                        ->resolveUsing(function ($value) {\r\n                            $locale = app()->getLocale();\r\n                            $item = json_decode($value, true);\r\n                            return $item[$locale];\r\n                        })->readOnly(),\r\n                    Text::make(\"Quantity\")->fieldClasses('w-full px-8 py-6')\r\n                        ->hideLabelInForms()->readOnly(),\r\n                    Text::make(\"Price\")->fieldClasses('w-full px-8 py-6')\r\n                        ->hideLabelInForms()->readOnly(),\r\n                ])->hideWhenUpdating()->hideWhenCreating(),\r\n```"}}
{"actor":{"display_login":"idragon81"}}