{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/7400","labels_url":"https://api.github.com/repos/laravel/framework/issues/7400/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/7400/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/7400/events","html_url":"https://github.com/laravel/framework/issues/7400","id":57425070,"number":7400,"title":"Can I set a custom attributes on the form validation request?","user":{"login":"cyberid41","id":5117289,"avatar_url":"https://avatars.githubusercontent.com/u/5117289?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberid41","html_url":"https://github.com/cyberid41","followers_url":"https://api.github.com/users/cyberid41/followers","following_url":"https://api.github.com/users/cyberid41/following{/other_user}","gists_url":"https://api.github.com/users/cyberid41/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberid41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberid41/subscriptions","organizations_url":"https://api.github.com/users/cyberid41/orgs","repos_url":"https://api.github.com/users/cyberid41/repos","events_url":"https://api.github.com/users/cyberid41/events{/privacy}","received_events_url":"https://api.github.com/users/cyberid41/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-12T07:04:30Z","updated_at":"2015-02-12T13:16:16Z","closed_at":"2015-02-12T10:44:04Z","body":"such as : \r\n```php\r\nclass StudentCreateRequest extends Request{\r\n\r\nprotected $customAttributes = [\r\n        'first_name' => 'First Name',\r\n        'last_name' => 'Last Name',\r\n        'bird_date'   => 'Bird of Date'\r\n];\r\n\r\n}\r\n```\r\n\r\non the results of validation will be like this\r\n```\r\n{\r\n\"first_name\": [\r\n\"The First Name field is required.\"\r\n],\r\n\"last_name\": [\r\n\"The Last Name field is required.\"\r\n],\r\n\"bird_date\": [\r\n\"The Bird of Date field is required.\"\r\n]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/74068412","html_url":"https://github.com/laravel/framework/issues/7400#issuecomment-74068412","issue_url":"https://api.github.com/repos/laravel/framework/issues/7400","id":74068412,"user":{"login":"overtrue","id":1472352,"avatar_url":"https://avatars.githubusercontent.com/u/1472352?v=3","gravatar_id":"","url":"https://api.github.com/users/overtrue","html_url":"https://github.com/overtrue","followers_url":"https://api.github.com/users/overtrue/followers","following_url":"https://api.github.com/users/overtrue/following{/other_user}","gists_url":"https://api.github.com/users/overtrue/gists{/gist_id}","starred_url":"https://api.github.com/users/overtrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overtrue/subscriptions","organizations_url":"https://api.github.com/users/overtrue/orgs","repos_url":"https://api.github.com/users/overtrue/repos","events_url":"https://api.github.com/users/overtrue/events{/privacy}","received_events_url":"https://api.github.com/users/overtrue/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T13:16:16Z","updated_at":"2015-02-12T13:16:16Z","body":"@cyberid41 :laughing: "}}