{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/ideas/issues/630","repository_url":"https://api.github.com/repos/laravel/ideas","labels_url":"https://api.github.com/repos/laravel/ideas/issues/630/labels{/name}","comments_url":"https://api.github.com/repos/laravel/ideas/issues/630/comments","events_url":"https://api.github.com/repos/laravel/ideas/issues/630/events","html_url":"https://github.com/laravel/ideas/issues/630","id":234431553,"number":630,"title":"[Proposal] Allow multiple $dateFormat","user":{"login":"bdsoha","id":4192777,"avatar_url":"https://avatars3.githubusercontent.com/u/4192777?v=4","gravatar_id":"","url":"https://api.github.com/users/bdsoha","html_url":"https://github.com/bdsoha","followers_url":"https://api.github.com/users/bdsoha/followers","following_url":"https://api.github.com/users/bdsoha/following{/other_user}","gists_url":"https://api.github.com/users/bdsoha/gists{/gist_id}","starred_url":"https://api.github.com/users/bdsoha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdsoha/subscriptions","organizations_url":"https://api.github.com/users/bdsoha/orgs","repos_url":"https://api.github.com/users/bdsoha/repos","events_url":"https://api.github.com/users/bdsoha/events{/privacy}","received_events_url":"https://api.github.com/users/bdsoha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-06-08T07:11:45Z","updated_at":"2018-03-09T19:38:59Z","closed_at":"2018-03-09T19:38:59Z","author_association":"NONE","body":"Wouldn't it be great if models would allow different date formats for different attributes. The `$dates` array can be rewritten to support attribute names as `keys` and formats as `values`.\r\n\r\n```php\r\nclass MultipleDateFormats extends Model\r\n{\r\n    protected $dates = [\r\n        'expiration' => 'm-y',\r\n        'birthday'   => 'm-d-Y',\r\n        'default_date'\r\n    ];\r\n}\r\n```"}}
{"actor":{"display_login":"taylorotwell"}}