{"action":"created","issue":{"url":"https://api.github.com/repos/BeatSwitch/lock-laravel/issues/9","labels_url":"https://api.github.com/repos/BeatSwitch/lock-laravel/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/BeatSwitch/lock-laravel/issues/9/comments","events_url":"https://api.github.com/repos/BeatSwitch/lock-laravel/issues/9/events","html_url":"https://github.com/BeatSwitch/lock-laravel/pull/9","id":54588638,"number":9,"title":"Defered LockServiceProvider","user":{"login":"MathieuDoyon","id":1854511,"avatar_url":"https://avatars.githubusercontent.com/u/1854511?v=3","gravatar_id":"","url":"https://api.github.com/users/MathieuDoyon","html_url":"https://github.com/MathieuDoyon","followers_url":"https://api.github.com/users/MathieuDoyon/followers","following_url":"https://api.github.com/users/MathieuDoyon/following{/other_user}","gists_url":"https://api.github.com/users/MathieuDoyon/gists{/gist_id}","starred_url":"https://api.github.com/users/MathieuDoyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MathieuDoyon/subscriptions","organizations_url":"https://api.github.com/users/MathieuDoyon/orgs","repos_url":"https://api.github.com/users/MathieuDoyon/repos","events_url":"https://api.github.com/users/MathieuDoyon/events{/privacy}","received_events_url":"https://api.github.com/users/MathieuDoyon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-16T15:38:55Z","updated_at":"2015-01-16T15:44:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/BeatSwitch/lock-laravel/pulls/9","html_url":"https://github.com/BeatSwitch/lock-laravel/pull/9","diff_url":"https://github.com/BeatSwitch/lock-laravel/pull/9.diff","patch_url":"https://github.com/BeatSwitch/lock-laravel/pull/9.patch"},"body":"```$app['auth']->check()``` is alway ```null``` (at https://github.com/BeatSwitch/lock-laravel/blob/9cb25c01e31e0f6febacf8519560ae2b033ffbcf/src/LockServiceProvider.php#L90) if not defered, ```Auth``` as not booted.\r\n\r\nyou need to update storage/framework/service.json with ```php artisan optimize```"},"comment":{"url":"https://api.github.com/repos/BeatSwitch/lock-laravel/issues/comments/70272037","html_url":"https://github.com/BeatSwitch/lock-laravel/pull/9#issuecomment-70272037","issue_url":"https://api.github.com/repos/BeatSwitch/lock-laravel/issues/9","id":70272037,"user":{"login":"MathieuDoyon","id":1854511,"avatar_url":"https://avatars.githubusercontent.com/u/1854511?v=3","gravatar_id":"","url":"https://api.github.com/users/MathieuDoyon","html_url":"https://github.com/MathieuDoyon","followers_url":"https://api.github.com/users/MathieuDoyon/followers","following_url":"https://api.github.com/users/MathieuDoyon/following{/other_user}","gists_url":"https://api.github.com/users/MathieuDoyon/gists{/gist_id}","starred_url":"https://api.github.com/users/MathieuDoyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MathieuDoyon/subscriptions","organizations_url":"https://api.github.com/users/MathieuDoyon/orgs","repos_url":"https://api.github.com/users/MathieuDoyon/repos","events_url":"https://api.github.com/users/MathieuDoyon/events{/privacy}","received_events_url":"https://api.github.com/users/MathieuDoyon/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T15:44:55Z","updated_at":"2015-01-16T15:44:55Z","body":"if not defered, will cause **Please set a valid lock instance on this class before attempting to use it.** if you use ```Auth::user->can(...)```"}}