{"action":"created","issue":{"url":"https://api.github.com/repos/appstract/laravel-blade-directives/issues/43","repository_url":"https://api.github.com/repos/appstract/laravel-blade-directives","labels_url":"https://api.github.com/repos/appstract/laravel-blade-directives/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/appstract/laravel-blade-directives/issues/43/comments","events_url":"https://api.github.com/repos/appstract/laravel-blade-directives/issues/43/events","html_url":"https://github.com/appstract/laravel-blade-directives/pull/43","id":378690853,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5MzMzMzU2","number":43,"title":"New @error directive","user":{"login":"adriaroca","id":3205030,"node_id":"MDQ6VXNlcjMyMDUwMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/3205030?v=4","gravatar_id":"","url":"https://api.github.com/users/adriaroca","html_url":"https://github.com/adriaroca","followers_url":"https://api.github.com/users/adriaroca/followers","following_url":"https://api.github.com/users/adriaroca/following{/other_user}","gists_url":"https://api.github.com/users/adriaroca/gists{/gist_id}","starred_url":"https://api.github.com/users/adriaroca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriaroca/subscriptions","organizations_url":"https://api.github.com/users/adriaroca/orgs","repos_url":"https://api.github.com/users/adriaroca/repos","events_url":"https://api.github.com/users/adriaroca/events{/privacy}","received_events_url":"https://api.github.com/users/adriaroca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-08T11:29:46Z","updated_at":"2018-11-08T11:58:24Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/appstract/laravel-blade-directives/pulls/43","html_url":"https://github.com/appstract/laravel-blade-directives/pull/43","diff_url":"https://github.com/appstract/laravel-blade-directives/pull/43.diff","patch_url":"https://github.com/appstract/laravel-blade-directives/pull/43.patch"},"body":"In many of my projects I tend to use `@if ($ errors-> has ('input_name'))` to detect if an input has an error. For a more comfortable reading, I suggest you add this directive:\r\n\r\nReplace this:\r\n\r\n`\r\n@if($errors->has('input_name'))\r\nThis input has an error\r\n@endif\r\n`\r\n\r\nFor:\r\n\r\n`\r\n@error('input_name')\r\n    This input has an error\r\n@enderror\r\n`"},"comment":{"url":"https://api.github.com/repos/appstract/laravel-blade-directives/issues/comments/436970550","html_url":"https://github.com/appstract/laravel-blade-directives/pull/43#issuecomment-436970550","issue_url":"https://api.github.com/repos/appstract/laravel-blade-directives/issues/43","id":436970550,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjk3MDU1MA==","user":{"login":"gizburdt","id":1470623,"node_id":"MDQ6VXNlcjE0NzA2MjM=","avatar_url":"https://avatars1.githubusercontent.com/u/1470623?v=4","gravatar_id":"","url":"https://api.github.com/users/gizburdt","html_url":"https://github.com/gizburdt","followers_url":"https://api.github.com/users/gizburdt/followers","following_url":"https://api.github.com/users/gizburdt/following{/other_user}","gists_url":"https://api.github.com/users/gizburdt/gists{/gist_id}","starred_url":"https://api.github.com/users/gizburdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gizburdt/subscriptions","organizations_url":"https://api.github.com/users/gizburdt/orgs","repos_url":"https://api.github.com/users/gizburdt/repos","events_url":"https://api.github.com/users/gizburdt/events{/privacy}","received_events_url":"https://api.github.com/users/gizburdt/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T11:58:24Z","updated_at":"2018-11-08T11:58:24Z","author_association":"MEMBER","body":"Thanks :)"}}
{"actor":{"display_login":"gizburdt"}}