{"action":"closed","number":121,"pull_request":{"url":"https://api.github.com/repos/laravel/spark/pulls/121","id":49379775,"html_url":"https://github.com/laravel/spark/pull/121","diff_url":"https://github.com/laravel/spark/pull/121.diff","patch_url":"https://github.com/laravel/spark/pull/121.patch","issue_url":"https://api.github.com/repos/laravel/spark/issues/121","number":121,"state":"closed","locked":false,"title":"User Address feature for Spark","user":{"login":"srmklive","id":839335,"avatar_url":"https://avatars.githubusercontent.com/u/839335?v=3","gravatar_id":"","url":"https://api.github.com/users/srmklive","html_url":"https://github.com/srmklive","followers_url":"https://api.github.com/users/srmklive/followers","following_url":"https://api.github.com/users/srmklive/following{/other_user}","gists_url":"https://api.github.com/users/srmklive/gists{/gist_id}","starred_url":"https://api.github.com/users/srmklive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srmklive/subscriptions","organizations_url":"https://api.github.com/users/srmklive/orgs","repos_url":"https://api.github.com/users/srmklive/repos","events_url":"https://api.github.com/users/srmklive/events{/privacy}","received_events_url":"https://api.github.com/users/srmklive/received_events","type":"User","site_admin":false},"body":"# Summary\r\nThis PR adds feature to allow users to add their billing address information to Spark.\r\n\r\n# Changes\r\n## Configuration\r\nAdded configuration file to enable/disable address feature. Credit to @mpociot  @aaranmcguire for this suggestion.\r\n\r\n## Database\r\nThis PR adds the following models to the Spark installation along with their relevant migrations:\r\n* Country\r\n* State\r\n* Address\r\n\r\nFurthermore following seed have been added as well:\r\n* CountryTableSeeder\r\n* StatesTableSeeder (has states data for US & Canada)\r\n\r\n## Controllers\r\n* Added **API\\StatesController** to get associated states for a selected country.\r\n\r\n## User Registration\r\n### Registration Form (With Paid Subscription)\r\n\r\n#### Without Address (Spark Default)\r\n![laravel_-_2015-11-02_16 03 03](https://cloud.githubusercontent.com/assets/839335/10880391/b408000e-817c-11e5-90a3-b1ee446499ee.png)\r\n\r\n#### With Address Enabled\r\n![laravel_-_2015-11-02_16 04 59](https://cloud.githubusercontent.com/assets/839335/10880398/c70945dc-817c-11e5-8f7d-97e940e9beca.png)\r\n\r\n\r\n## Update Profile\r\n### Without Address (Spark Default)\r\n![laravel_-_2015-11-02_16 18 03](https://cloud.githubusercontent.com/assets/839335/10880503/71d5d156-817d-11e5-8ccb-b9c635524d36.png)\r\n\r\n### With Address Enabled\r\n![laravel_-_2015-11-26_17 23 30](https://cloud.githubusercontent.com/assets/839335/11423009/90c97598-9462-11e5-9506-6db769f8ee90.png)\r\n\r\n","created_at":"2015-11-01T20:18:25Z","updated_at":"2015-12-07T20:53:56Z","closed_at":"2015-12-07T20:53:56Z","merged_at":null,"merge_commit_sha":"59d2d77246ced087ce6a3b86004535676ac56408","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel/spark/pulls/121/commits","review_comments_url":"https://api.github.com/repos/laravel/spark/pulls/121/comments","review_comment_url":"https://api.github.com/repos/laravel/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel/spark/issues/121/comments","statuses_url":"https://api.github.com/repos/laravel/spark/statuses/0c5758bf7944870de871520a9d000a80c1c4dc33","head":{"label":"srmklive:master","ref":"master","sha":"0c5758bf7944870de871520a9d000a80c1c4dc33","user":{"login":"srmklive","id":839335,"avatar_url":"https://avatars.githubusercontent.com/u/839335?v=3","gravatar_id":"","url":"https://api.github.com/users/srmklive","html_url":"https://github.com/srmklive","followers_url":"https://api.github.com/users/srmklive/followers","following_url":"https://api.github.com/users/srmklive/following{/other_user}","gists_url":"https://api.github.com/users/srmklive/gists{/gist_id}","starred_url":"https://api.github.com/users/srmklive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srmklive/subscriptions","organizations_url":"https://api.github.com/users/srmklive/orgs","repos_url":"https://api.github.com/users/srmklive/repos","events_url":"https://api.github.com/users/srmklive/events{/privacy}","received_events_url":"https://api.github.com/users/srmklive/received_events","type":"User","site_admin":false},"repo":{"id":45329762,"name":"spark","full_name":"srmklive/spark","owner":{"login":"srmklive","id":839335,"avatar_url":"https://avatars.githubusercontent.com/u/839335?v=3","gravatar_id":"","url":"https://api.github.com/users/srmklive","html_url":"https://github.com/srmklive","followers_url":"https://api.github.com/users/srmklive/followers","following_url":"https://api.github.com/users/srmklive/following{/other_user}","gists_url":"https://api.github.com/users/srmklive/gists{/gist_id}","starred_url":"https://api.github.com/users/srmklive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srmklive/subscriptions","organizations_url":"https://api.github.com/users/srmklive/orgs","repos_url":"https://api.github.com/users/srmklive/repos","events_url":"https://api.github.com/users/srmklive/events{/privacy}","received_events_url":"https://api.github.com/users/srmklive/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/srmklive/spark","description":"","fork":true,"url":"https://api.github.com/repos/srmklive/spark","forks_url":"https://api.github.com/repos/srmklive/spark/forks","keys_url":"https://api.github.com/repos/srmklive/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/srmklive/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/srmklive/spark/teams","hooks_url":"https://api.github.com/repos/srmklive/spark/hooks","issue_events_url":"https://api.github.com/repos/srmklive/spark/issues/events{/number}","events_url":"https://api.github.com/repos/srmklive/spark/events","assignees_url":"https://api.github.com/repos/srmklive/spark/assignees{/user}","branches_url":"https://api.github.com/repos/srmklive/spark/branches{/branch}","tags_url":"https://api.github.com/repos/srmklive/spark/tags","blobs_url":"https://api.github.com/repos/srmklive/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/srmklive/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/srmklive/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/srmklive/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/srmklive/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/srmklive/spark/languages","stargazers_url":"https://api.github.com/repos/srmklive/spark/stargazers","contributors_url":"https://api.github.com/repos/srmklive/spark/contributors","subscribers_url":"https://api.github.com/repos/srmklive/spark/subscribers","subscription_url":"https://api.github.com/repos/srmklive/spark/subscription","commits_url":"https://api.github.com/repos/srmklive/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/srmklive/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/srmklive/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/srmklive/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/srmklive/spark/contents/{+path}","compare_url":"https://api.github.com/repos/srmklive/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/srmklive/spark/merges","archive_url":"https://api.github.com/repos/srmklive/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/srmklive/spark/downloads","issues_url":"https://api.github.com/repos/srmklive/spark/issues{/number}","pulls_url":"https://api.github.com/repos/srmklive/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/srmklive/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/srmklive/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/srmklive/spark/labels{/name}","releases_url":"https://api.github.com/repos/srmklive/spark/releases{/id}","created_at":"2015-11-01T05:47:17Z","updated_at":"2015-11-01T05:47:18Z","pushed_at":"2015-11-29T18:57:45Z","git_url":"git://github.com/srmklive/spark.git","ssh_url":"git@github.com:srmklive/spark.git","clone_url":"https://github.com/srmklive/spark.git","svn_url":"https://github.com/srmklive/spark","homepage":null,"size":761,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"laravel:master","ref":"master","sha":"931100b031567ea85dd48966b5ec054de411c749","user":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"repo":{"id":42457373,"name":"spark","full_name":"laravel/spark","owner":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel/spark","description":"","fork":false,"url":"https://api.github.com/repos/laravel/spark","forks_url":"https://api.github.com/repos/laravel/spark/forks","keys_url":"https://api.github.com/repos/laravel/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel/spark/teams","hooks_url":"https://api.github.com/repos/laravel/spark/hooks","issue_events_url":"https://api.github.com/repos/laravel/spark/issues/events{/number}","events_url":"https://api.github.com/repos/laravel/spark/events","assignees_url":"https://api.github.com/repos/laravel/spark/assignees{/user}","branches_url":"https://api.github.com/repos/laravel/spark/branches{/branch}","tags_url":"https://api.github.com/repos/laravel/spark/tags","blobs_url":"https://api.github.com/repos/laravel/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel/spark/languages","stargazers_url":"https://api.github.com/repos/laravel/spark/stargazers","contributors_url":"https://api.github.com/repos/laravel/spark/contributors","subscribers_url":"https://api.github.com/repos/laravel/spark/subscribers","subscription_url":"https://api.github.com/repos/laravel/spark/subscription","commits_url":"https://api.github.com/repos/laravel/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel/spark/contents/{+path}","compare_url":"https://api.github.com/repos/laravel/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel/spark/merges","archive_url":"https://api.github.com/repos/laravel/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel/spark/downloads","issues_url":"https://api.github.com/repos/laravel/spark/issues{/number}","pulls_url":"https://api.github.com/repos/laravel/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel/spark/labels{/name}","releases_url":"https://api.github.com/repos/laravel/spark/releases{/id}","created_at":"2015-09-14T15:28:57Z","updated_at":"2015-12-07T18:53:23Z","pushed_at":"2015-12-07T20:53:37Z","git_url":"git://github.com/laravel/spark.git","ssh_url":"git@github.com:laravel/spark.git","clone_url":"https://github.com/laravel/spark.git","svn_url":"https://github.com/laravel/spark","homepage":null,"size":864,"stargazers_count":1027,"watchers_count":1027,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":136,"mirror_url":null,"open_issues_count":44,"forks":136,"open_issues":44,"watchers":1027,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/spark/pulls/121"},"html":{"href":"https://github.com/laravel/spark/pull/121"},"issue":{"href":"https://api.github.com/repos/laravel/spark/issues/121"},"comments":{"href":"https://api.github.com/repos/laravel/spark/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/spark/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel/spark/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/spark/statuses/0c5758bf7944870de871520a9d000a80c1c4dc33"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":16,"review_comments":0,"commits":1,"additions":1191,"deletions":15,"changed_files":23}}