{"action":"created","issue":{"url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/157","labels_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/157/comments","events_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/157/events","html_url":"https://github.com/kristijanhusak/laravel-form-builder/issues/157","id":105054261,"number":157,"title":"Pass Model to ChildForm","user":{"login":"mstaack","id":10169509,"avatar_url":"https://avatars.githubusercontent.com/u/10169509?v=3","gravatar_id":"","url":"https://api.github.com/users/mstaack","html_url":"https://github.com/mstaack","followers_url":"https://api.github.com/users/mstaack/followers","following_url":"https://api.github.com/users/mstaack/following{/other_user}","gists_url":"https://api.github.com/users/mstaack/gists{/gist_id}","starred_url":"https://api.github.com/users/mstaack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstaack/subscriptions","organizations_url":"https://api.github.com/users/mstaack/orgs","repos_url":"https://api.github.com/users/mstaack/repos","events_url":"https://api.github.com/users/mstaack/events{/privacy}","received_events_url":"https://api.github.com/users/mstaack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2015-09-05T22:46:26Z","updated_at":"2016-01-11T14:06:11Z","closed_at":null,"body":"How do i pass a model reference to childs forms?\r\n\r\n```\r\n    public function buildForm()\r\n    {\r\n        $this\r\n            ->add('User', 'form', [\r\n                'class' => 'App\\Forms\\UserForm',\r\n                'formOptions' => [],\r\n                'model' => $user,\r\n            ])->add('Company', 'form', [\r\n                'class' => 'App\\Forms\\CompanyForm',\r\n            ]);\r\n    }\r\n```\r\n'model'=>$user  is not working...form is rendered, but empty"},"comment":{"url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/comments/170559759","html_url":"https://github.com/kristijanhusak/laravel-form-builder/issues/157#issuecomment-170559759","issue_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/157","id":170559759,"user":{"login":"kristijanhusak","id":1782860,"avatar_url":"https://avatars.githubusercontent.com/u/1782860?v=3","gravatar_id":"","url":"https://api.github.com/users/kristijanhusak","html_url":"https://github.com/kristijanhusak","followers_url":"https://api.github.com/users/kristijanhusak/followers","following_url":"https://api.github.com/users/kristijanhusak/following{/other_user}","gists_url":"https://api.github.com/users/kristijanhusak/gists{/gist_id}","starred_url":"https://api.github.com/users/kristijanhusak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristijanhusak/subscriptions","organizations_url":"https://api.github.com/users/kristijanhusak/orgs","repos_url":"https://api.github.com/users/kristijanhusak/repos","events_url":"https://api.github.com/users/kristijanhusak/events{/privacy}","received_events_url":"https://api.github.com/users/kristijanhusak/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T14:06:11Z","updated_at":"2016-01-11T14:06:11Z","body":"@tormit it works when u pass it as data or normally?"}}