{"action":"created","issue":{"url":"https://api.github.com/repos/appzcoder/laravel-admin/issues/1","repository_url":"https://api.github.com/repos/appzcoder/laravel-admin","labels_url":"https://api.github.com/repos/appzcoder/laravel-admin/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/appzcoder/laravel-admin/issues/1/comments","events_url":"https://api.github.com/repos/appzcoder/laravel-admin/issues/1/events","html_url":"https://github.com/appzcoder/laravel-admin/issues/1","id":147118047,"number":1,"title":"Otimize load users permissions","user":{"login":"bsoliveira","id":9544970,"avatar_url":"https://avatars.githubusercontent.com/u/9544970?v=3","gravatar_id":"","url":"https://api.github.com/users/bsoliveira","html_url":"https://github.com/bsoliveira","followers_url":"https://api.github.com/users/bsoliveira/followers","following_url":"https://api.github.com/users/bsoliveira/following{/other_user}","gists_url":"https://api.github.com/users/bsoliveira/gists{/gist_id}","starred_url":"https://api.github.com/users/bsoliveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsoliveira/subscriptions","organizations_url":"https://api.github.com/users/bsoliveira/orgs","repos_url":"https://api.github.com/users/bsoliveira/repos","events_url":"https://api.github.com/users/bsoliveira/events{/privacy}","received_events_url":"https://api.github.com/users/bsoliveira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-09T10:45:22Z","updated_at":"2016-04-09T10:49:23Z","closed_at":null,"body":"Thank you for the wonderful package. I would like to contribute a tip to optimize the loading of User permissions on AuthServiceProvider.\r\n\r\n    public function boot(GateContract $gate)\r\n    {\r\n        // Checks table permissions exists\r\n        if(!App::environment('local') && Schema::hasTable('permissions')){\r\n            throw new \\Exception(\"Table permissions not exists, please run migration!\");            \r\n        }\r\n\r\n        parent::registerPolicies($gate);\r\n\r\n......"},"comment":{"url":"https://api.github.com/repos/appzcoder/laravel-admin/issues/comments/207769096","html_url":"https://github.com/appzcoder/laravel-admin/issues/1#issuecomment-207769096","issue_url":"https://api.github.com/repos/appzcoder/laravel-admin/issues/1","id":207769096,"user":{"login":"bsoliveira","id":9544970,"avatar_url":"https://avatars.githubusercontent.com/u/9544970?v=3","gravatar_id":"","url":"https://api.github.com/users/bsoliveira","html_url":"https://github.com/bsoliveira","followers_url":"https://api.github.com/users/bsoliveira/followers","following_url":"https://api.github.com/users/bsoliveira/following{/other_user}","gists_url":"https://api.github.com/users/bsoliveira/gists{/gist_id}","starred_url":"https://api.github.com/users/bsoliveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsoliveira/subscriptions","organizations_url":"https://api.github.com/users/bsoliveira/orgs","repos_url":"https://api.github.com/users/bsoliveira/repos","events_url":"https://api.github.com/users/bsoliveira/events{/privacy}","received_events_url":"https://api.github.com/users/bsoliveira/received_events","type":"User","site_admin":false},"created_at":"2016-04-09T10:49:23Z","updated_at":"2016-04-09T10:49:23Z","body":"Oppss! fix =)\r\n\r\n        if(App::environment('local') && !Schema::hasTable('permissions')){\r\n            throw new \\Exception(\"Table permissions not exists, please run migration!\");            \r\n        }"}}