{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/10189","labels_url":"https://api.github.com/repos/laravel/framework/issues/10189/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/10189/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/10189/events","html_url":"https://github.com/laravel/framework/issues/10189","id":105398716,"number":10189,"title":"Request::has() on empty get string","user":{"login":"sciasfreelancer","id":10332146,"avatar_url":"https://avatars.githubusercontent.com/u/10332146?v=3","gravatar_id":"","url":"https://api.github.com/users/sciasfreelancer","html_url":"https://github.com/sciasfreelancer","followers_url":"https://api.github.com/users/sciasfreelancer/followers","following_url":"https://api.github.com/users/sciasfreelancer/following{/other_user}","gists_url":"https://api.github.com/users/sciasfreelancer/gists{/gist_id}","starred_url":"https://api.github.com/users/sciasfreelancer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sciasfreelancer/subscriptions","organizations_url":"https://api.github.com/users/sciasfreelancer/orgs","repos_url":"https://api.github.com/users/sciasfreelancer/repos","events_url":"https://api.github.com/users/sciasfreelancer/events{/privacy}","received_events_url":"https://api.github.com/users/sciasfreelancer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-08T14:50:50Z","updated_at":"2015-09-08T15:12:16Z","closed_at":"2015-09-08T15:12:05Z","body":"URL: http://localhost/?admin\r\n\r\nTemplates/welcome.blade.php\r\n{{dd(Request::has('admin'), Request::input())}}\r\n\r\nprints:\r\nfalse\r\n\r\narray:3 [▼\r\n  \"admin\" => \"\"\r\n]\r\n\r\nURL: http://localhost/\r\nprints:\r\nfalse\r\n\r\narray:0 [▼\r\n]\r\n\r\nProblem: Laravel does not recognize empty $_GET strings.\r\n\r\nDocumentation \"To determine if a value is present on the request, you may use the has method. The has method returns true if the value is present and is not an empty string:\".\r\nBut what about empty string $_GET ? Usually doing isset($_GET['something']) is enough, but in laravel ?"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/138596151","html_url":"https://github.com/laravel/framework/issues/10189#issuecomment-138596151","issue_url":"https://api.github.com/repos/laravel/framework/issues/10189","id":138596151,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T15:12:16Z","updated_at":"2015-09-08T15:12:16Z","body":"This is intentional, sorry."}}