{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/8507","labels_url":"https://api.github.com/repos/laravel/framework/issues/8507/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/8507/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/8507/events","html_url":"https://github.com/laravel/framework/pull/8507","id":69797176,"number":8507,"title":"[5.1] Macroable schema blueprint","user":{"login":"rkgrep","id":2423048,"avatar_url":"https://avatars.githubusercontent.com/u/2423048?v=3","gravatar_id":"","url":"https://api.github.com/users/rkgrep","html_url":"https://github.com/rkgrep","followers_url":"https://api.github.com/users/rkgrep/followers","following_url":"https://api.github.com/users/rkgrep/following{/other_user}","gists_url":"https://api.github.com/users/rkgrep/gists{/gist_id}","starred_url":"https://api.github.com/users/rkgrep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkgrep/subscriptions","organizations_url":"https://api.github.com/users/rkgrep/orgs","repos_url":"https://api.github.com/users/rkgrep/repos","events_url":"https://api.github.com/users/rkgrep/events{/privacy}","received_events_url":"https://api.github.com/users/rkgrep/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-21T09:39:59Z","updated_at":"2015-04-23T14:31:23Z","closed_at":"2015-04-23T14:31:23Z","pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/8507","html_url":"https://github.com/laravel/framework/pull/8507","diff_url":"https://github.com/laravel/framework/pull/8507.diff","patch_url":"https://github.com/laravel/framework/pull/8507.patch"},"body":"Applies Macroable trait to Blueprint, so developers can create own patches to migrations like `softDeletes()`;\r\n\r\n````php\r\nBlueprint::macro('myProvidedColumn', function()\r\n{\r\n    return $this->string('providedColumn')->default('foo');\r\n});\r\n// ...\r\n$blueprint->myProvidedColumn()->nullable();\r\n````"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/95605905","html_url":"https://github.com/laravel/framework/pull/8507#issuecomment-95605905","issue_url":"https://api.github.com/repos/laravel/framework/issues/8507","id":95605905,"user":{"login":"taylorotwell","id":463230,"avatar_url":"https://avatars.githubusercontent.com/u/463230?v=3","gravatar_id":"","url":"https://api.github.com/users/taylorotwell","html_url":"https://github.com/taylorotwell","followers_url":"https://api.github.com/users/taylorotwell/followers","following_url":"https://api.github.com/users/taylorotwell/following{/other_user}","gists_url":"https://api.github.com/users/taylorotwell/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorotwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorotwell/subscriptions","organizations_url":"https://api.github.com/users/taylorotwell/orgs","repos_url":"https://api.github.com/users/taylorotwell/repos","events_url":"https://api.github.com/users/taylorotwell/events{/privacy}","received_events_url":"https://api.github.com/users/taylorotwell/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T14:31:23Z","updated_at":"2015-04-23T14:31:23Z","body":"Going to hold off on this for now."}}