{"action":"opened","number":86,"pull_request":{"url":"https://api.github.com/repos/chrisbjr/api-guard/pulls/86","id":57182665,"html_url":"https://github.com/chrisbjr/api-guard/pull/86","diff_url":"https://github.com/chrisbjr/api-guard/pull/86.diff","patch_url":"https://github.com/chrisbjr/api-guard/pull/86.patch","issue_url":"https://api.github.com/repos/chrisbjr/api-guard/issues/86","number":86,"state":"open","locked":false,"title":"Allow empty serializedApiMethods and Authenticate User with api-guard middleware","user":{"login":"petitkoalak","id":5098668,"avatar_url":"https://avatars.githubusercontent.com/u/5098668?v=3","gravatar_id":"","url":"https://api.github.com/users/petitkoalak","html_url":"https://github.com/petitkoalak","followers_url":"https://api.github.com/users/petitkoalak/followers","following_url":"https://api.github.com/users/petitkoalak/following{/other_user}","gists_url":"https://api.github.com/users/petitkoalak/gists{/gist_id}","starred_url":"https://api.github.com/users/petitkoalak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petitkoalak/subscriptions","organizations_url":"https://api.github.com/users/petitkoalak/orgs","repos_url":"https://api.github.com/users/petitkoalak/repos","events_url":"https://api.github.com/users/petitkoalak/events{/privacy}","received_events_url":"https://api.github.com/users/petitkoalak/received_events","type":"User","site_admin":false},"body":"I just was notified of the acceptation of @gholol pull request about api-guard as a laravel middleware.\r\nThese are the changes I made from his code.\r\n\r\nBasically it just let the possibility to send no \"options\" and it authenticate the current user so it becomes accessible via Auth::user()\r\n\r\nThe last thing I would might change on this, is : Adding the possibility to send \"$serializedApiMethods\" as plain php Array and not as serialized array, let me know if you interrested and I'll commit modifications\r\n\r\nYou did there great work, hope you'll accept this request ","created_at":"2016-01-26T08:43:05Z","updated_at":"2016-01-26T08:43:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chrisbjr/api-guard/pulls/86/commits","review_comments_url":"https://api.github.com/repos/chrisbjr/api-guard/pulls/86/comments","review_comment_url":"https://api.github.com/repos/chrisbjr/api-guard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chrisbjr/api-guard/issues/86/comments","statuses_url":"https://api.github.com/repos/chrisbjr/api-guard/statuses/57df7f70625192c62cc606e98b8bcf7cccaa7c21","head":{"label":"petitkoalak:laravel52-middleware","ref":"laravel52-middleware","sha":"57df7f70625192c62cc606e98b8bcf7cccaa7c21","user":{"login":"petitkoalak","id":5098668,"avatar_url":"https://avatars.githubusercontent.com/u/5098668?v=3","gravatar_id":"","url":"https://api.github.com/users/petitkoalak","html_url":"https://github.com/petitkoalak","followers_url":"https://api.github.com/users/petitkoalak/followers","following_url":"https://api.github.com/users/petitkoalak/following{/other_user}","gists_url":"https://api.github.com/users/petitkoalak/gists{/gist_id}","starred_url":"https://api.github.com/users/petitkoalak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petitkoalak/subscriptions","organizations_url":"https://api.github.com/users/petitkoalak/orgs","repos_url":"https://api.github.com/users/petitkoalak/repos","events_url":"https://api.github.com/users/petitkoalak/events{/privacy}","received_events_url":"https://api.github.com/users/petitkoalak/received_events","type":"User","site_admin":false},"repo":{"id":49967916,"name":"api-guard","full_name":"petitkoalak/api-guard","owner":{"login":"petitkoalak","id":5098668,"avatar_url":"https://avatars.githubusercontent.com/u/5098668?v=3","gravatar_id":"","url":"https://api.github.com/users/petitkoalak","html_url":"https://github.com/petitkoalak","followers_url":"https://api.github.com/users/petitkoalak/followers","following_url":"https://api.github.com/users/petitkoalak/following{/other_user}","gists_url":"https://api.github.com/users/petitkoalak/gists{/gist_id}","starred_url":"https://api.github.com/users/petitkoalak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petitkoalak/subscriptions","organizations_url":"https://api.github.com/users/petitkoalak/orgs","repos_url":"https://api.github.com/users/petitkoalak/repos","events_url":"https://api.github.com/users/petitkoalak/events{/privacy}","received_events_url":"https://api.github.com/users/petitkoalak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/petitkoalak/api-guard","description":"A simple way of authenticating your RESTful APIs with API keys using Laravel","fork":true,"url":"https://api.github.com/repos/petitkoalak/api-guard","forks_url":"https://api.github.com/repos/petitkoalak/api-guard/forks","keys_url":"https://api.github.com/repos/petitkoalak/api-guard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/petitkoalak/api-guard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/petitkoalak/api-guard/teams","hooks_url":"https://api.github.com/repos/petitkoalak/api-guard/hooks","issue_events_url":"https://api.github.com/repos/petitkoalak/api-guard/issues/events{/number}","events_url":"https://api.github.com/repos/petitkoalak/api-guard/events","assignees_url":"https://api.github.com/repos/petitkoalak/api-guard/assignees{/user}","branches_url":"https://api.github.com/repos/petitkoalak/api-guard/branches{/branch}","tags_url":"https://api.github.com/repos/petitkoalak/api-guard/tags","blobs_url":"https://api.github.com/repos/petitkoalak/api-guard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/petitkoalak/api-guard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/petitkoalak/api-guard/git/refs{/sha}","trees_url":"https://api.github.com/repos/petitkoalak/api-guard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/petitkoalak/api-guard/statuses/{sha}","languages_url":"https://api.github.com/repos/petitkoalak/api-guard/languages","stargazers_url":"https://api.github.com/repos/petitkoalak/api-guard/stargazers","contributors_url":"https://api.github.com/repos/petitkoalak/api-guard/contributors","subscribers_url":"https://api.github.com/repos/petitkoalak/api-guard/subscribers","subscription_url":"https://api.github.com/repos/petitkoalak/api-guard/subscription","commits_url":"https://api.github.com/repos/petitkoalak/api-guard/commits{/sha}","git_commits_url":"https://api.github.com/repos/petitkoalak/api-guard/git/commits{/sha}","comments_url":"https://api.github.com/repos/petitkoalak/api-guard/comments{/number}","issue_comment_url":"https://api.github.com/repos/petitkoalak/api-guard/issues/comments{/number}","contents_url":"https://api.github.com/repos/petitkoalak/api-guard/contents/{+path}","compare_url":"https://api.github.com/repos/petitkoalak/api-guard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/petitkoalak/api-guard/merges","archive_url":"https://api.github.com/repos/petitkoalak/api-guard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/petitkoalak/api-guard/downloads","issues_url":"https://api.github.com/repos/petitkoalak/api-guard/issues{/number}","pulls_url":"https://api.github.com/repos/petitkoalak/api-guard/pulls{/number}","milestones_url":"https://api.github.com/repos/petitkoalak/api-guard/milestones{/number}","notifications_url":"https://api.github.com/repos/petitkoalak/api-guard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/petitkoalak/api-guard/labels{/name}","releases_url":"https://api.github.com/repos/petitkoalak/api-guard/releases{/id}","deployments_url":"https://api.github.com/repos/petitkoalak/api-guard/deployments","created_at":"2016-01-19T16:55:04Z","updated_at":"2016-01-19T16:55:05Z","pushed_at":"2016-01-19T18:26:58Z","git_url":"git://github.com/petitkoalak/api-guard.git","ssh_url":"git@github.com:petitkoalak/api-guard.git","clone_url":"https://github.com/petitkoalak/api-guard.git","svn_url":"https://github.com/petitkoalak/api-guard","homepage":"","size":123,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"laravel52-middleware"}},"base":{"label":"chrisbjr:master","ref":"master","sha":"266c8afa478691a6ad8b98c54228ad44240227c0","user":{"login":"chrisbjr","id":571279,"avatar_url":"https://avatars.githubusercontent.com/u/571279?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisbjr","html_url":"https://github.com/chrisbjr","followers_url":"https://api.github.com/users/chrisbjr/followers","following_url":"https://api.github.com/users/chrisbjr/following{/other_user}","gists_url":"https://api.github.com/users/chrisbjr/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisbjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisbjr/subscriptions","organizations_url":"https://api.github.com/users/chrisbjr/orgs","repos_url":"https://api.github.com/users/chrisbjr/repos","events_url":"https://api.github.com/users/chrisbjr/events{/privacy}","received_events_url":"https://api.github.com/users/chrisbjr/received_events","type":"User","site_admin":false},"repo":{"id":20798947,"name":"api-guard","full_name":"chrisbjr/api-guard","owner":{"login":"chrisbjr","id":571279,"avatar_url":"https://avatars.githubusercontent.com/u/571279?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisbjr","html_url":"https://github.com/chrisbjr","followers_url":"https://api.github.com/users/chrisbjr/followers","following_url":"https://api.github.com/users/chrisbjr/following{/other_user}","gists_url":"https://api.github.com/users/chrisbjr/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisbjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisbjr/subscriptions","organizations_url":"https://api.github.com/users/chrisbjr/orgs","repos_url":"https://api.github.com/users/chrisbjr/repos","events_url":"https://api.github.com/users/chrisbjr/events{/privacy}","received_events_url":"https://api.github.com/users/chrisbjr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chrisbjr/api-guard","description":"A simple way of authenticating your RESTful APIs with API keys using Laravel","fork":false,"url":"https://api.github.com/repos/chrisbjr/api-guard","forks_url":"https://api.github.com/repos/chrisbjr/api-guard/forks","keys_url":"https://api.github.com/repos/chrisbjr/api-guard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrisbjr/api-guard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrisbjr/api-guard/teams","hooks_url":"https://api.github.com/repos/chrisbjr/api-guard/hooks","issue_events_url":"https://api.github.com/repos/chrisbjr/api-guard/issues/events{/number}","events_url":"https://api.github.com/repos/chrisbjr/api-guard/events","assignees_url":"https://api.github.com/repos/chrisbjr/api-guard/assignees{/user}","branches_url":"https://api.github.com/repos/chrisbjr/api-guard/branches{/branch}","tags_url":"https://api.github.com/repos/chrisbjr/api-guard/tags","blobs_url":"https://api.github.com/repos/chrisbjr/api-guard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrisbjr/api-guard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrisbjr/api-guard/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrisbjr/api-guard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrisbjr/api-guard/statuses/{sha}","languages_url":"https://api.github.com/repos/chrisbjr/api-guard/languages","stargazers_url":"https://api.github.com/repos/chrisbjr/api-guard/stargazers","contributors_url":"https://api.github.com/repos/chrisbjr/api-guard/contributors","subscribers_url":"https://api.github.com/repos/chrisbjr/api-guard/subscribers","subscription_url":"https://api.github.com/repos/chrisbjr/api-guard/subscription","commits_url":"https://api.github.com/repos/chrisbjr/api-guard/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrisbjr/api-guard/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrisbjr/api-guard/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrisbjr/api-guard/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrisbjr/api-guard/contents/{+path}","compare_url":"https://api.github.com/repos/chrisbjr/api-guard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrisbjr/api-guard/merges","archive_url":"https://api.github.com/repos/chrisbjr/api-guard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrisbjr/api-guard/downloads","issues_url":"https://api.github.com/repos/chrisbjr/api-guard/issues{/number}","pulls_url":"https://api.github.com/repos/chrisbjr/api-guard/pulls{/number}","milestones_url":"https://api.github.com/repos/chrisbjr/api-guard/milestones{/number}","notifications_url":"https://api.github.com/repos/chrisbjr/api-guard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrisbjr/api-guard/labels{/name}","releases_url":"https://api.github.com/repos/chrisbjr/api-guard/releases{/id}","deployments_url":"https://api.github.com/repos/chrisbjr/api-guard/deployments","created_at":"2014-06-13T09:21:06Z","updated_at":"2016-01-26T01:27:54Z","pushed_at":"2016-01-26T07:52:03Z","git_url":"git://github.com/chrisbjr/api-guard.git","ssh_url":"git@github.com:chrisbjr/api-guard.git","clone_url":"https://github.com/chrisbjr/api-guard.git","svn_url":"https://github.com/chrisbjr/api-guard","homepage":"","size":153,"stargazers_count":362,"watchers_count":362,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":15,"forks":81,"open_issues":15,"watchers":362,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chrisbjr/api-guard/pulls/86"},"html":{"href":"https://github.com/chrisbjr/api-guard/pull/86"},"issue":{"href":"https://api.github.com/repos/chrisbjr/api-guard/issues/86"},"comments":{"href":"https://api.github.com/repos/chrisbjr/api-guard/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/chrisbjr/api-guard/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/chrisbjr/api-guard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chrisbjr/api-guard/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/chrisbjr/api-guard/statuses/57df7f70625192c62cc606e98b8bcf7cccaa7c21"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":19,"deletions":2,"changed_files":1}}