{"action":"created","issue":{"url":"https://api.github.com/repos/bosnadev/repository/issues/84","repository_url":"https://api.github.com/repos/bosnadev/repository","labels_url":"https://api.github.com/repos/bosnadev/repository/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/bosnadev/repository/issues/84/comments","events_url":"https://api.github.com/repos/bosnadev/repository/issues/84/events","html_url":"https://github.com/bosnadev/repository/issues/84","id":177726260,"number":84,"title":"It doesn't work in lumen5.1.   Target [App\\\\Http\\\\Controllers\\\\Api\\\\V1\\\\UserController] is not instantiable.","user":{"login":"Tang1024","id":16270359,"avatar_url":"https://avatars.githubusercontent.com/u/16270359?v=3","gravatar_id":"","url":"https://api.github.com/users/Tang1024","html_url":"https://github.com/Tang1024","followers_url":"https://api.github.com/users/Tang1024/followers","following_url":"https://api.github.com/users/Tang1024/following{/other_user}","gists_url":"https://api.github.com/users/Tang1024/gists{/gist_id}","starred_url":"https://api.github.com/users/Tang1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tang1024/subscriptions","organizations_url":"https://api.github.com/users/Tang1024/orgs","repos_url":"https://api.github.com/users/Tang1024/repos","events_url":"https://api.github.com/users/Tang1024/events{/privacy}","received_events_url":"https://api.github.com/users/Tang1024/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-19T08:15:15Z","updated_at":"2016-09-19T08:41:54Z","closed_at":null,"body":"```php\r\n// repository\r\nnamespace App\\Repositories;\r\n\r\nuse Bosnadev\\Repositories\\Contracts\\RepositoryInterface;\r\nuse Bosnadev\\Repositories\\Eloquent\\Repository;\r\n\r\nclass UserRepository extends Repository\r\n{\r\n    public function model()\r\n    {\r\n        return 'App\\Models\\User';\r\n    }\r\n}\r\n\r\n\r\n// controller\r\nclass UserController extends BaseController\r\n{\r\n    protected $user;\r\n\r\n    protected function __construct(UserRepository $user)\r\n    {\r\n        $this->user = $user;\r\n    }\r\n\r\n    public function user()\r\n    {\r\n        $user = $this->user->all();\r\n\r\n        return $this->response->item($user, new UserTransformer);\r\n    }\r\n}\r\n```\r\nIf I Comment out the repository, and it works."},"comment":{"url":"https://api.github.com/repos/bosnadev/repository/issues/comments/247938811","html_url":"https://github.com/bosnadev/repository/issues/84#issuecomment-247938811","issue_url":"https://api.github.com/repos/bosnadev/repository/issues/84","id":247938811,"user":{"login":"Tang1024","id":16270359,"avatar_url":"https://avatars.githubusercontent.com/u/16270359?v=3","gravatar_id":"","url":"https://api.github.com/users/Tang1024","html_url":"https://github.com/Tang1024","followers_url":"https://api.github.com/users/Tang1024/followers","following_url":"https://api.github.com/users/Tang1024/following{/other_user}","gists_url":"https://api.github.com/users/Tang1024/gists{/gist_id}","starred_url":"https://api.github.com/users/Tang1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tang1024/subscriptions","organizations_url":"https://api.github.com/users/Tang1024/orgs","repos_url":"https://api.github.com/users/Tang1024/repos","events_url":"https://api.github.com/users/Tang1024/events{/privacy}","received_events_url":"https://api.github.com/users/Tang1024/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T08:41:54Z","updated_at":"2016-09-19T08:41:54Z","body":"I found the reason. Because I had the protected __construct() function in the BaseController.After I deleted it, It had worked.Sorry!"}}
{"actor":{"display_login":"Tang1024"}}