{"action":"created","issue":{"url":"https://api.github.com/repos/illuminate/database/issues/166","labels_url":"https://api.github.com/repos/illuminate/database/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/illuminate/database/issues/166/comments","events_url":"https://api.github.com/repos/illuminate/database/issues/166/events","html_url":"https://github.com/illuminate/database/pull/166","id":97018150,"number":166,"title":"Add defaultTimestamps function to schema blueprint","user":{"login":"daverogers","id":953524,"avatar_url":"https://avatars.githubusercontent.com/u/953524?v=3","gravatar_id":"","url":"https://api.github.com/users/daverogers","html_url":"https://github.com/daverogers","followers_url":"https://api.github.com/users/daverogers/followers","following_url":"https://api.github.com/users/daverogers/following{/other_user}","gists_url":"https://api.github.com/users/daverogers/gists{/gist_id}","starred_url":"https://api.github.com/users/daverogers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daverogers/subscriptions","organizations_url":"https://api.github.com/users/daverogers/orgs","repos_url":"https://api.github.com/users/daverogers/repos","events_url":"https://api.github.com/users/daverogers/events{/privacy}","received_events_url":"https://api.github.com/users/daverogers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-24T10:03:43Z","updated_at":"2015-07-24T10:06:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/illuminate/database/pulls/166","html_url":"https://github.com/illuminate/database/pull/166","diff_url":"https://github.com/illuminate/database/pull/166.diff","patch_url":"https://github.com/illuminate/database/pull/166.patch"},"body":"So instead of this:\r\n```php\r\n$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));\r\n$table->timestamp('updated_at')->default(DB::raw('CURRENT_TIMESTAMP'));\r\n```\r\n\r\n...you can do this:\r\n```php\r\n$table->defaultTimestamps(DB::raw('CURRENT_TIMESTAMP'));\r\n```"},"comment":{"url":"https://api.github.com/repos/illuminate/database/issues/comments/124461746","html_url":"https://github.com/illuminate/database/pull/166#issuecomment-124461746","issue_url":"https://api.github.com/repos/illuminate/database/issues/166","id":124461746,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T10:06:36Z","updated_at":"2015-07-24T10:06:36Z","body":"This repo is READ ONLY. Please close this."}}