{"action":"closed","issue":{"url":"https://api.github.com/repos/thetispro/laravel5-setting/issues/1","labels_url":"https://api.github.com/repos/thetispro/laravel5-setting/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/thetispro/laravel5-setting/issues/1/comments","events_url":"https://api.github.com/repos/thetispro/laravel5-setting/issues/1/events","html_url":"https://github.com/thetispro/laravel5-setting/issues/1","id":100918346,"number":1,"title":"Add an Alias mapping to a real class for dependency injection","user":{"login":"mattzuba","id":1494713,"avatar_url":"https://avatars.githubusercontent.com/u/1494713?v=3","gravatar_id":"","url":"https://api.github.com/users/mattzuba","html_url":"https://github.com/mattzuba","followers_url":"https://api.github.com/users/mattzuba/followers","following_url":"https://api.github.com/users/mattzuba/following{/other_user}","gists_url":"https://api.github.com/users/mattzuba/gists{/gist_id}","starred_url":"https://api.github.com/users/mattzuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattzuba/subscriptions","organizations_url":"https://api.github.com/users/mattzuba/orgs","repos_url":"https://api.github.com/users/mattzuba/repos","events_url":"https://api.github.com/users/mattzuba/events{/privacy}","received_events_url":"https://api.github.com/users/mattzuba/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-14T02:48:08Z","updated_at":"2015-08-15T14:41:03Z","closed_at":"2015-08-15T14:41:03Z","body":"Something like this in the Service Provider:\r\n\r\n```\r\n$this->app->alias('setting', 'Thetispro\\Setting\\Setting');\r\n```\r\n\r\nOr change the bind line\r\n\r\n```\r\n$this->app->bind(['setting' => 'Thetispro\\Setting\\Setting'], function($app) {\r\n```\r\n\r\nMakes it much easier to use dependency injection instead of facades to access everything."}}