{"action":"created","issue":{"url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/232","repository_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder","labels_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/232/comments","events_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/232/events","html_url":"https://github.com/kristijanhusak/laravel-form-builder/issues/232","id":157922814,"number":232,"title":"Laravel 5.2.32 or greater breaks form","user":{"login":"vincehollywood","id":3396096,"avatar_url":"https://avatars.githubusercontent.com/u/3396096?v=3","gravatar_id":"","url":"https://api.github.com/users/vincehollywood","html_url":"https://github.com/vincehollywood","followers_url":"https://api.github.com/users/vincehollywood/followers","following_url":"https://api.github.com/users/vincehollywood/following{/other_user}","gists_url":"https://api.github.com/users/vincehollywood/gists{/gist_id}","starred_url":"https://api.github.com/users/vincehollywood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincehollywood/subscriptions","organizations_url":"https://api.github.com/users/vincehollywood/orgs","repos_url":"https://api.github.com/users/vincehollywood/repos","events_url":"https://api.github.com/users/vincehollywood/events{/privacy}","received_events_url":"https://api.github.com/users/vincehollywood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-01T14:35:17Z","updated_at":"2016-06-02T07:52:26Z","closed_at":null,"body":"When updating to Laravel 5.2.32 or greater, I get the following error when trying to display a form with a button. Removing the button works.\r\n\r\n> Relationship method must return an object of type lluminate\\Database\\Eloquent\\Relations\\Relation\r\n\r\n```\r\n/* EditMediaForm.php */\r\n\r\npublic function buildForm()\r\n{\r\n     $this->add('filename', 'text')\r\n         ->add('alt_attribute', 'text')\r\n         ->add('save', 'submit', ['attr' => ['class' => 'btn btn-primary']]);\r\n}\r\n```\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/comments/223220644","html_url":"https://github.com/kristijanhusak/laravel-form-builder/issues/232#issuecomment-223220644","issue_url":"https://api.github.com/repos/kristijanhusak/laravel-form-builder/issues/232","id":223220644,"user":{"login":"vincehollywood","id":3396096,"avatar_url":"https://avatars.githubusercontent.com/u/3396096?v=3","gravatar_id":"","url":"https://api.github.com/users/vincehollywood","html_url":"https://github.com/vincehollywood","followers_url":"https://api.github.com/users/vincehollywood/followers","following_url":"https://api.github.com/users/vincehollywood/following{/other_user}","gists_url":"https://api.github.com/users/vincehollywood/gists{/gist_id}","starred_url":"https://api.github.com/users/vincehollywood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincehollywood/subscriptions","organizations_url":"https://api.github.com/users/vincehollywood/orgs","repos_url":"https://api.github.com/users/vincehollywood/repos","events_url":"https://api.github.com/users/vincehollywood/events{/privacy}","received_events_url":"https://api.github.com/users/vincehollywood/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T07:52:26Z","updated_at":"2016-06-02T07:52:26Z","body":"```\r\narray(14) {\r\n    [\"id\"] => int(2)\r\n    [\"filename\"] => string(50) \"13178822_10209364664818664_35521213679345507_n.jpg\" \r\n    [\"extension\"] => string(3) \"jpg\" \r\n    [\"mime_type\"] => string(10) \"image/jpeg\"\r\n    [\"width\"] => int(960)\r\n    [\"height\"] => int(960)\r\n    [\"size\"] => int(92926)\r\n    [\"source\"] => string(23) \"QcmV7uZD_2_Gw8NLKLm.jpg\"\r\n    [\"alt_attribute\"] => string(50) \"13178822_10209364664818664_35521213679345507_n.jpg\"\r\n    [\"album_id\"] => int(2)\r\n    [\"cloned_id\"] => NULL\r\n    [\"crop_data\"] => NULL\r\n    [\"created_at\"] => string(19) \"2016-05-24 10:44:36\"\r\n    [\"updated_at\"] => string(19) \"2016-05-24 10:44:36\"\r\n}\r\n```"}}
{"actor":{"display_login":"vincehollywood"}}