{"action":"opened","number":108,"pull_request":{"url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/pulls/108","id":37089283,"html_url":"https://github.com/kristijanhusak/laravel-form-builder/pull/108","diff_url":"https://github.com/kristijanhusak/laravel-form-builder/pull/108.diff","patch_url":"https://github.com/kristijanhusak/laravel-form-builder/pull/108.patch","issue_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/108","number":108,"state":"open","locked":false,"title":"Add form composition","user":{"login":"theshaunwalker","id":11784058,"avatar_url":"https://avatars.githubusercontent.com/u/11784058?v=3","gravatar_id":"","url":"https://api.github.com/users/theshaunwalker","html_url":"https://github.com/theshaunwalker","followers_url":"https://api.github.com/users/theshaunwalker/followers","following_url":"https://api.github.com/users/theshaunwalker/following{/other_user}","gists_url":"https://api.github.com/users/theshaunwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/theshaunwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theshaunwalker/subscriptions","organizations_url":"https://api.github.com/users/theshaunwalker/orgs","repos_url":"https://api.github.com/users/theshaunwalker/repos","events_url":"https://api.github.com/users/theshaunwalker/events{/privacy}","received_events_url":"https://api.github.com/users/theshaunwalker/received_events","type":"User","site_admin":false},"body":"This PR adds the ability to take a child form and add its fields directly to the parent form.\r\n\r\nAdded `makeField()` as an abstracted method of generating the `FormField`\r\nAdded `compose` which is used the same way as `add()` just only needing `$options` and the `$modify` flag. It creates the child form as usual via the new `makeField()` function, then just adds all the fields from that child form, to the parent form.\r\n\r\nI've thrown this together as it fixed my issue of trying to use child forms to help with composition of forms but it messed up using model binding, and this is the best solution anyway I just hadnt thought of it till now :P","created_at":"2015-06-06T11:40:39Z","updated_at":"2015-06-06T11:40:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/pulls/108/commits","review_comments_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/pulls/108/comments","review_comment_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/108/comments","statuses_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/statuses/1a985b31e302bd672776f4432cd5cd41410c5246","head":{"label":"theshaunwalker:patch-3","ref":"patch-3","sha":"1a985b31e302bd672776f4432cd5cd41410c5246","user":{"login":"theshaunwalker","id":11784058,"avatar_url":"https://avatars.githubusercontent.com/u/11784058?v=3","gravatar_id":"","url":"https://api.github.com/users/theshaunwalker","html_url":"https://github.com/theshaunwalker","followers_url":"https://api.github.com/users/theshaunwalker/followers","following_url":"https://api.github.com/users/theshaunwalker/following{/other_user}","gists_url":"https://api.github.com/users/theshaunwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/theshaunwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theshaunwalker/subscriptions","organizations_url":"https://api.github.com/users/theshaunwalker/orgs","repos_url":"https://api.github.com/users/theshaunwalker/repos","events_url":"https://api.github.com/users/theshaunwalker/events{/privacy}","received_events_url":"https://api.github.com/users/theshaunwalker/received_events","type":"User","site_admin":false},"repo":{"id":34213163,"name":"laravel-form-builder","full_name":"theshaunwalker/laravel-form-builder","owner":{"login":"theshaunwalker","id":11784058,"avatar_url":"https://avatars.githubusercontent.com/u/11784058?v=3","gravatar_id":"","url":"https://api.github.com/users/theshaunwalker","html_url":"https://github.com/theshaunwalker","followers_url":"https://api.github.com/users/theshaunwalker/followers","following_url":"https://api.github.com/users/theshaunwalker/following{/other_user}","gists_url":"https://api.github.com/users/theshaunwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/theshaunwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theshaunwalker/subscriptions","organizations_url":"https://api.github.com/users/theshaunwalker/orgs","repos_url":"https://api.github.com/users/theshaunwalker/repos","events_url":"https://api.github.com/users/theshaunwalker/events{/privacy}","received_events_url":"https://api.github.com/users/theshaunwalker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/theshaunwalker/laravel-form-builder","description":"Laravel Form builder for version 5!","fork":true,"url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder","forks_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/forks","keys_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/teams","hooks_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/hooks","issue_events_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/issues/events{/number}","events_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/events","assignees_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/assignees{/user}","branches_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/branches{/branch}","tags_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/tags","blobs_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/languages","stargazers_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/stargazers","contributors_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/contributors","subscribers_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/subscribers","subscription_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/subscription","commits_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/contents/{+path}","compare_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/merges","archive_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/downloads","issues_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/issues{/number}","pulls_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/labels{/name}","releases_url":"https://api.github.com/repos/theshaunwalker/laravel-form-builder/releases{/id}","created_at":"2015-04-19T15:55:16Z","updated_at":"2015-04-19T15:55:17Z","pushed_at":"2015-06-06T11:34:53Z","git_url":"git://github.com/theshaunwalker/laravel-form-builder.git","ssh_url":"git@github.com:theshaunwalker/laravel-form-builder.git","clone_url":"https://github.com/theshaunwalker/laravel-form-builder.git","svn_url":"https://github.com/theshaunwalker/laravel-form-builder","homepage":"https://packagist.org/packages/kris/laravel-form-builder","size":478,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kristijanhusak:master","ref":"master","sha":"59642a74d42731ee96869f6781897f96f3b8a625","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},"repo":{"id":25275777,"name":"laravel-form-builder","full_name":"kristijanhusak/laravel-form-builder","owner":{"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},"private":false,"html_url":"https://github.com/kristijanhusak/laravel-form-builder","description":"Laravel Form builder for version 5!","fork":false,"url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder","forks_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/forks","keys_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/teams","hooks_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/hooks","issue_events_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/events{/number}","events_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/events","assignees_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/assignees{/user}","branches_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/branches{/branch}","tags_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/tags","blobs_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/languages","stargazers_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/stargazers","contributors_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/contributors","subscribers_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/subscribers","subscription_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/subscription","commits_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/contents/{+path}","compare_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/merges","archive_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/downloads","issues_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues{/number}","pulls_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/labels{/name}","releases_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/releases{/id}","created_at":"2014-10-15T22:10:20Z","updated_at":"2015-06-05T11:15:54Z","pushed_at":"2015-06-06T08:50:16Z","git_url":"git://github.com/kristijanhusak/laravel-form-builder.git","ssh_url":"git@github.com:kristijanhusak/laravel-form-builder.git","clone_url":"https://github.com/kristijanhusak/laravel-form-builder.git","svn_url":"https://github.com/kristijanhusak/laravel-form-builder","homepage":"https://packagist.org/packages/kris/laravel-form-builder","size":1966,"stargazers_count":175,"watchers_count":175,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":34,"mirror_url":null,"open_issues_count":5,"forks":34,"open_issues":5,"watchers":175,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/pulls/108"},"html":{"href":"https://github.com/kristijanhusak/laravel-form-builder/pull/108"},"issue":{"href":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/108"},"comments":{"href":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/statuses/1a985b31e302bd672776f4432cd5cd41410c5246"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":44,"deletions":10,"changed_files":1}}