{"action":"created","issue":{"url":"https://api.github.com/repos/creolab/laravel-modules/issues/105","labels_url":"https://api.github.com/repos/creolab/laravel-modules/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/creolab/laravel-modules/issues/105/comments","events_url":"https://api.github.com/repos/creolab/laravel-modules/issues/105/events","html_url":"https://github.com/creolab/laravel-modules/issues/105","id":65606690,"number":105,"title":"module specific commands","user":{"login":"andragan","id":6055342,"avatar_url":"https://avatars.githubusercontent.com/u/6055342?v=3","gravatar_id":"","url":"https://api.github.com/users/andragan","html_url":"https://github.com/andragan","followers_url":"https://api.github.com/users/andragan/followers","following_url":"https://api.github.com/users/andragan/following{/other_user}","gists_url":"https://api.github.com/users/andragan/gists{/gist_id}","starred_url":"https://api.github.com/users/andragan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andragan/subscriptions","organizations_url":"https://api.github.com/users/andragan/orgs","repos_url":"https://api.github.com/users/andragan/repos","events_url":"https://api.github.com/users/andragan/events{/privacy}","received_events_url":"https://api.github.com/users/andragan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T05:16:18Z","updated_at":"2015-07-18T06:58:23Z","closed_at":null,"body":"is this working? I have tried by following the instructions from the [readme] (https://github.com/creolab/laravel-modules#commands-1)  but when I run\r\n```\r\nphp artisan modules.incident:incRecommendationExpiryService\r\n```\r\nit always respond with\r\n```\r\n[InvalidArgumentException]\r\nThere are no commands defined in the \"modules.incident\" namespace.\r\n```\r\n'incident' is my module name, and 'incRecommendationExpiryService' is the command name.\r\nI think I'm doing something wrong, so I tried searching in https://github.com/bstrahija/laravel-modules-example, but seems like there are no implementation of this 'module specific commands' there?"},"comment":{"url":"https://api.github.com/repos/creolab/laravel-modules/issues/comments/122505654","html_url":"https://github.com/creolab/laravel-modules/issues/105#issuecomment-122505654","issue_url":"https://api.github.com/repos/creolab/laravel-modules/issues/105","id":122505654,"user":{"login":"GiovanniK","id":1393791,"avatar_url":"https://avatars.githubusercontent.com/u/1393791?v=3","gravatar_id":"","url":"https://api.github.com/users/GiovanniK","html_url":"https://github.com/GiovanniK","followers_url":"https://api.github.com/users/GiovanniK/followers","following_url":"https://api.github.com/users/GiovanniK/following{/other_user}","gists_url":"https://api.github.com/users/GiovanniK/gists{/gist_id}","starred_url":"https://api.github.com/users/GiovanniK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GiovanniK/subscriptions","organizations_url":"https://api.github.com/users/GiovanniK/orgs","repos_url":"https://api.github.com/users/GiovanniK/repos","events_url":"https://api.github.com/users/GiovanniK/events{/privacy}","received_events_url":"https://api.github.com/users/GiovanniK/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T06:58:23Z","updated_at":"2015-07-18T06:58:23Z","body":"Hi Andragan,\r\n\r\nI have found the solution to this. What I did is the following:\r\n\r\nCreate the command:\r\n`php artisan command:make  --path=app/modules/Vote/commands --namespace=App\\Modules\\Vote\\Commands --command=modules.Vote:cleanOldLinks cleanOldLinks`\r\n\r\nAfter that I put this in my module.json (NOTE: don't forget to use \\\\ instead of \\): \r\n`\"command\": \"App\\\\Modules\\\\Vote\\\\Commands\\\\cleanOldLinks\"`\r\n\r\nNow I did php artisan dump-autoload and I tried to use the module using `php artisan modules.Vote:cleanOldLinks\u0000` and it worked!\r\n\r\nI can see that this issue was created in April, I do not know if you still need the solution for this. \r\n\r\nGiovanni"}}