{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/13444","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/13444/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/13444/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/13444/events","html_url":"https://github.com/laravel/framework/pull/13444","id":153246753,"number":13444,"title":"[5.2] Allow custom validators to be called with out function name","user":{"login":"joshhornby","id":5455767,"avatar_url":"https://avatars.githubusercontent.com/u/5455767?v=3","gravatar_id":"","url":"https://api.github.com/users/joshhornby","html_url":"https://github.com/joshhornby","followers_url":"https://api.github.com/users/joshhornby/followers","following_url":"https://api.github.com/users/joshhornby/following{/other_user}","gists_url":"https://api.github.com/users/joshhornby/gists{/gist_id}","starred_url":"https://api.github.com/users/joshhornby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshhornby/subscriptions","organizations_url":"https://api.github.com/users/joshhornby/orgs","repos_url":"https://api.github.com/users/joshhornby/repos","events_url":"https://api.github.com/users/joshhornby/events{/privacy}","received_events_url":"https://api.github.com/users/joshhornby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-05T14:42:55Z","updated_at":"2016-05-06T09:37:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/13444","html_url":"https://github.com/laravel/framework/pull/13444","diff_url":"https://github.com/laravel/framework/pull/13444.diff","patch_url":"https://github.com/laravel/framework/pull/13444.patch"},"body":"This would class based custom validators to simply call the class instead of having to define a function inside the class.\r\n\r\n`Validator::extend('postcode', PostcodeValidator::class);`"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/217397841","html_url":"https://github.com/laravel/framework/pull/13444#issuecomment-217397841","issue_url":"https://api.github.com/repos/laravel/framework/issues/13444","id":217397841,"user":{"login":"joshhornby","id":5455767,"avatar_url":"https://avatars.githubusercontent.com/u/5455767?v=3","gravatar_id":"","url":"https://api.github.com/users/joshhornby","html_url":"https://github.com/joshhornby","followers_url":"https://api.github.com/users/joshhornby/followers","following_url":"https://api.github.com/users/joshhornby/following{/other_user}","gists_url":"https://api.github.com/users/joshhornby/gists{/gist_id}","starred_url":"https://api.github.com/users/joshhornby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshhornby/subscriptions","organizations_url":"https://api.github.com/users/joshhornby/orgs","repos_url":"https://api.github.com/users/joshhornby/repos","events_url":"https://api.github.com/users/joshhornby/events{/privacy}","received_events_url":"https://api.github.com/users/joshhornby/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T09:37:29Z","updated_at":"2016-05-06T09:37:29Z","body":"@taylorotwell  \r\n\r\n`PostcodeValidator::class` vs `App\\Validator\\PostcodeValidator@validate` \r\n\r\nFor me the `::class` way is cleaner and easier to use with modern IDEs. Is there any reason not to allow both ways?"}}