{"action":"created","issue":{"url":"https://api.github.com/repos/pingpong-labs/modules/issues/213","labels_url":"https://api.github.com/repos/pingpong-labs/modules/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/pingpong-labs/modules/issues/213/comments","events_url":"https://api.github.com/repos/pingpong-labs/modules/issues/213/events","html_url":"https://github.com/pingpong-labs/modules/issues/213","id":108195133,"number":213,"title":"how to pass the App::class to a module","user":{"login":"nmpribeiro","id":414938,"avatar_url":"https://avatars.githubusercontent.com/u/414938?v=3","gravatar_id":"","url":"https://api.github.com/users/nmpribeiro","html_url":"https://github.com/nmpribeiro","followers_url":"https://api.github.com/users/nmpribeiro/followers","following_url":"https://api.github.com/users/nmpribeiro/following{/other_user}","gists_url":"https://api.github.com/users/nmpribeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/nmpribeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmpribeiro/subscriptions","organizations_url":"https://api.github.com/users/nmpribeiro/orgs","repos_url":"https://api.github.com/users/nmpribeiro/repos","events_url":"https://api.github.com/users/nmpribeiro/events{/privacy}","received_events_url":"https://api.github.com/users/nmpribeiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-24T19:14:19Z","updated_at":"2015-11-29T13:39:14Z","closed_at":null,"body":"Hi there!\r\n\r\nIt seams I am not able to access 'App::environment();' inside my modules... more specifically on my 'TableSeeder.php' file...  which is useful to avoid changes in production.\r\nif ( \\App::environment() === 'production') { exit('this is now allowed in production'); }\r\nI can't access with 'use Illuminate\\Contracts\\Foundation\\Application;' as stated in http://laravel.com/docs/5.0/configuration nor with \\App...\r\n\r\nhow can I do it?\r\nThanks"},"comment":{"url":"https://api.github.com/repos/pingpong-labs/modules/issues/comments/160417055","html_url":"https://github.com/pingpong-labs/modules/issues/213#issuecomment-160417055","issue_url":"https://api.github.com/repos/pingpong-labs/modules/issues/213","id":160417055,"user":{"login":"mahmutbayri","id":1398166,"avatar_url":"https://avatars.githubusercontent.com/u/1398166?v=3","gravatar_id":"","url":"https://api.github.com/users/mahmutbayri","html_url":"https://github.com/mahmutbayri","followers_url":"https://api.github.com/users/mahmutbayri/followers","following_url":"https://api.github.com/users/mahmutbayri/following{/other_user}","gists_url":"https://api.github.com/users/mahmutbayri/gists{/gist_id}","starred_url":"https://api.github.com/users/mahmutbayri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahmutbayri/subscriptions","organizations_url":"https://api.github.com/users/mahmutbayri/orgs","repos_url":"https://api.github.com/users/mahmutbayri/repos","events_url":"https://api.github.com/users/mahmutbayri/events{/privacy}","received_events_url":"https://api.github.com/users/mahmutbayri/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T13:39:14Z","updated_at":"2015-11-29T13:39:14Z","body":"You could use `app` function like \r\n\r\n    app()->environment('production')\r\n"}}