{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/lumen-framework/issues/412","repository_url":"https://api.github.com/repos/laravel/lumen-framework","labels_url":"https://api.github.com/repos/laravel/lumen-framework/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/laravel/lumen-framework/issues/412/comments","events_url":"https://api.github.com/repos/laravel/lumen-framework/issues/412/events","html_url":"https://github.com/laravel/lumen-framework/issues/412","id":154781147,"number":412,"title":"Target [Illuminate\\Contracts\\Validation\\Factory] is not instantiable.","user":{"login":"RubenWalraevens","id":12528648,"avatar_url":"https://avatars.githubusercontent.com/u/12528648?v=3","gravatar_id":"","url":"https://api.github.com/users/RubenWalraevens","html_url":"https://github.com/RubenWalraevens","followers_url":"https://api.github.com/users/RubenWalraevens/followers","following_url":"https://api.github.com/users/RubenWalraevens/following{/other_user}","gists_url":"https://api.github.com/users/RubenWalraevens/gists{/gist_id}","starred_url":"https://api.github.com/users/RubenWalraevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubenWalraevens/subscriptions","organizations_url":"https://api.github.com/users/RubenWalraevens/orgs","repos_url":"https://api.github.com/users/RubenWalraevens/repos","events_url":"https://api.github.com/users/RubenWalraevens/events{/privacy}","received_events_url":"https://api.github.com/users/RubenWalraevens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-13T19:12:42Z","updated_at":"2016-05-14T10:01:20Z","closed_at":null,"body":"We want to inject the Factory in our controller (Like below). This works in laravel, but not for Lumen:\r\n![image](https://cloud.githubusercontent.com/assets/12528648/15258906/5f23581c-194e-11e6-890a-b09c68ab969d.png)\r\n\r\nThe only thing we can do in Lumen is:\r\n```sh\r\napp('validator') // Which is returning an instance of the validator.\r\n```\r\nBut as far as I can see they are in laravel and lumen the same.\r\n\r\nAlso, when you go further in the controller logic of Lumen, you see that we actually use the contract:\r\n![image](https://cloud.githubusercontent.com/assets/12528648/15258936/9e9e4d80-194e-11e6-906d-4a9fd51b05b2.png)"},"comment":{"url":"https://api.github.com/repos/laravel/lumen-framework/issues/comments/219211885","html_url":"https://github.com/laravel/lumen-framework/issues/412#issuecomment-219211885","issue_url":"https://api.github.com/repos/laravel/lumen-framework/issues/412","id":219211885,"user":{"login":"mallinus","id":13000832,"avatar_url":"https://avatars.githubusercontent.com/u/13000832?v=3","gravatar_id":"","url":"https://api.github.com/users/mallinus","html_url":"https://github.com/mallinus","followers_url":"https://api.github.com/users/mallinus/followers","following_url":"https://api.github.com/users/mallinus/following{/other_user}","gists_url":"https://api.github.com/users/mallinus/gists{/gist_id}","starred_url":"https://api.github.com/users/mallinus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mallinus/subscriptions","organizations_url":"https://api.github.com/users/mallinus/orgs","repos_url":"https://api.github.com/users/mallinus/repos","events_url":"https://api.github.com/users/mallinus/events{/privacy}","received_events_url":"https://api.github.com/users/mallinus/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T10:01:20Z","updated_at":"2016-05-14T10:01:20Z","body":"BindingResolutionException in Container.php line 752:\r\nTarget [Illuminate\\Database\\ConnectionInterface] is not instantiable while building [Ichtus\\OAuth2\\OAuth2Manager].\r\n\r\nI'm getting the same exception here but for different contract type hint."}}