{"action":"created","issue":{"url":"https://api.github.com/repos/andersao/l5-repository/issues/253","repository_url":"https://api.github.com/repos/andersao/l5-repository","labels_url":"https://api.github.com/repos/andersao/l5-repository/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/andersao/l5-repository/issues/253/comments","events_url":"https://api.github.com/repos/andersao/l5-repository/issues/253/events","html_url":"https://github.com/andersao/l5-repository/issues/253","id":170093775,"number":253,"title":"The relations return null when using RequestCriteria in Repository","user":{"login":"tookit","id":149564,"avatar_url":"https://avatars.githubusercontent.com/u/149564?v=3","gravatar_id":"","url":"https://api.github.com/users/tookit","html_url":"https://github.com/tookit","followers_url":"https://api.github.com/users/tookit/followers","following_url":"https://api.github.com/users/tookit/following{/other_user}","gists_url":"https://api.github.com/users/tookit/gists{/gist_id}","starred_url":"https://api.github.com/users/tookit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tookit/subscriptions","organizations_url":"https://api.github.com/users/tookit/orgs","repos_url":"https://api.github.com/users/tookit/repos","events_url":"https://api.github.com/users/tookit/events{/privacy}","received_events_url":"https://api.github.com/users/tookit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-09T06:47:48Z","updated_at":"2016-09-08T21:38:56Z","closed_at":null,"body":"use Prettus\\Repository\\Eloquent\\BaseRepository;\r\nuse Prettus\\Repository\\Criteria\\RequestCriteria;\r\n\r\n\r\nclass PostRepository extends BaseRepository {\r\n\r\n    /**\r\n     * @var array\r\n     */\r\n    protected $fieldSearchable = [\r\n        'name',\r\n        'email'\r\n    ];\r\n\r\n    public function boot(){\r\n        $this->pushCriteria(app('Prettus\\Repository\\Criteria\\RequestCriteria'));\r\n        ...\r\n    }\r\n\r\n    function model(){\r\n       return \"App\\\\Post\";\r\n    }\r\n}"},"comment":{"url":"https://api.github.com/repos/andersao/l5-repository/issues/comments/245749977","html_url":"https://github.com/andersao/l5-repository/issues/253#issuecomment-245749977","issue_url":"https://api.github.com/repos/andersao/l5-repository/issues/253","id":245749977,"user":{"login":"golinmarq","id":13850842,"avatar_url":"https://avatars.githubusercontent.com/u/13850842?v=3","gravatar_id":"","url":"https://api.github.com/users/golinmarq","html_url":"https://github.com/golinmarq","followers_url":"https://api.github.com/users/golinmarq/followers","following_url":"https://api.github.com/users/golinmarq/following{/other_user}","gists_url":"https://api.github.com/users/golinmarq/gists{/gist_id}","starred_url":"https://api.github.com/users/golinmarq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golinmarq/subscriptions","organizations_url":"https://api.github.com/users/golinmarq/orgs","repos_url":"https://api.github.com/users/golinmarq/repos","events_url":"https://api.github.com/users/golinmarq/events{/privacy}","received_events_url":"https://api.github.com/users/golinmarq/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T21:38:56Z","updated_at":"2016-09-08T21:38:56Z","body":"What are your related attributes? As I can see you are not defining it on searchable fields  "}}
{"actor":{"display_login":"golinmarq"}}