{"action":"created","issue":{"url":"https://api.github.com/repos/nWidart/laravel-modules/issues/546","repository_url":"https://api.github.com/repos/nWidart/laravel-modules","labels_url":"https://api.github.com/repos/nWidart/laravel-modules/issues/546/labels{/name}","comments_url":"https://api.github.com/repos/nWidart/laravel-modules/issues/546/comments","events_url":"https://api.github.com/repos/nWidart/laravel-modules/issues/546/events","html_url":"https://github.com/nWidart/laravel-modules/issues/546","id":330944185,"node_id":"MDU6SXNzdWUzMzA5NDQxODU=","number":546,"title":"How to register service provider?","user":{"login":"rafailml","id":15358719,"node_id":"MDQ6VXNlcjE1MzU4NzE5","avatar_url":"https://avatars2.githubusercontent.com/u/15358719?v=4","gravatar_id":"","url":"https://api.github.com/users/rafailml","html_url":"https://github.com/rafailml","followers_url":"https://api.github.com/users/rafailml/followers","following_url":"https://api.github.com/users/rafailml/following{/other_user}","gists_url":"https://api.github.com/users/rafailml/gists{/gist_id}","starred_url":"https://api.github.com/users/rafailml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafailml/subscriptions","organizations_url":"https://api.github.com/users/rafailml/orgs","repos_url":"https://api.github.com/users/rafailml/repos","events_url":"https://api.github.com/users/rafailml/events{/privacy}","received_events_url":"https://api.github.com/users/rafailml/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-10T06:25:46Z","updated_at":"2018-08-01T20:45:04Z","closed_at":"2018-06-10T19:46:34Z","author_association":"NONE","body":"There are no app.php in Module/config\r\nCan I add 'providers' => [] in config.php?"},"comment":{"url":"https://api.github.com/repos/nWidart/laravel-modules/issues/comments/409716396","html_url":"https://github.com/nWidart/laravel-modules/issues/546#issuecomment-409716396","issue_url":"https://api.github.com/repos/nWidart/laravel-modules/issues/546","id":409716396,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTcxNjM5Ng==","user":{"login":"vigneshpalanivel","id":11902136,"node_id":"MDQ6VXNlcjExOTAyMTM2","avatar_url":"https://avatars2.githubusercontent.com/u/11902136?v=4","gravatar_id":"","url":"https://api.github.com/users/vigneshpalanivel","html_url":"https://github.com/vigneshpalanivel","followers_url":"https://api.github.com/users/vigneshpalanivel/followers","following_url":"https://api.github.com/users/vigneshpalanivel/following{/other_user}","gists_url":"https://api.github.com/users/vigneshpalanivel/gists{/gist_id}","starred_url":"https://api.github.com/users/vigneshpalanivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vigneshpalanivel/subscriptions","organizations_url":"https://api.github.com/users/vigneshpalanivel/orgs","repos_url":"https://api.github.com/users/vigneshpalanivel/repos","events_url":"https://api.github.com/users/vigneshpalanivel/events{/privacy}","received_events_url":"https://api.github.com/users/vigneshpalanivel/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T20:45:04Z","updated_at":"2018-08-01T20:45:04Z","author_association":"NONE","body":"I think, I'm properly using it.. Please see my code below.\r\n\r\nSiteSettingsRepositoryInterface.php\r\n\r\n```\r\nnamespace Modules\\Settings\\Repositories;\r\n\r\ninterface SiteSettingsRepositoryInterface\r\n{\r\n    public function getAll();\r\n}\r\n```\r\n\r\nSiteSettingsRepository.php\r\n\r\n```\r\nnamespace Modules\\Settings\\Repositories;\r\n\r\nuse Modules\\Settings\\Entities\\SiteSettings;\r\nuse Modules\\Settings\\Repositories\\SiteSettingsRepositoryInterface;\r\n\r\nclass SiteSettingsRepository implements SiteSettingsRepositoryInterface\r\n{\r\n    protected $model;\r\n\r\n    public function __construct(SiteSettings $site_settings)\r\n    {\r\n        $this->model = $site_settings;\r\n    }\r\n\r\n    public function getAll()\r\n    {\r\n        return $this->model->all();\r\n    }\r\n}\r\n```\r\n\r\nSettingsController.php\r\n\r\n```\r\nnamespace Modules\\Settings\\Http\\Controllers;\r\n\r\nuse Illuminate\\Http\\Request;\r\nuse Illuminate\\Http\\Response;\r\nuse Illuminate\\Routing\\Controller;\r\nuse Modules\\Settings\\Repositories\\SiteSettingsRepositoryInterface;\r\n\r\nclass SettingsController extends Controller\r\n{\r\n    /**\r\n     * Display a listing of the resource.\r\n     * @return Response\r\n     */\r\n    public function index(SiteSettingsRepositoryInterface $site_settings)\r\n    {\r\n        dd($site_settings->getAll());\r\n        return view('settings::index');\r\n    }\r\n}\r\n\r\n```\r\nSettingsServiceProvider.php\r\n\r\n```\r\npublic function register()\r\n    {\r\n        $this->app->bind('Modules\\Settings\\Respositories\\SiteSettingsRepositoryInterface', 'Modules\\Settings\\Respositories\\SiteSettingsRepository');\r\n    }\r\n```"}}
{"actor":{"display_login":"vigneshpalanivel"}}