{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/valet/issues/124","repository_url":"https://api.github.com/repos/laravel/valet","labels_url":"https://api.github.com/repos/laravel/valet/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/laravel/valet/issues/124/comments","events_url":"https://api.github.com/repos/laravel/valet/issues/124/events","html_url":"https://github.com/laravel/valet/issues/124","id":173214463,"number":124,"title":"Allow multiple subdomains","user":{"login":"jdavidbakr","id":25177,"avatar_url":"https://avatars.githubusercontent.com/u/25177?v=3","gravatar_id":"","url":"https://api.github.com/users/jdavidbakr","html_url":"https://github.com/jdavidbakr","followers_url":"https://api.github.com/users/jdavidbakr/followers","following_url":"https://api.github.com/users/jdavidbakr/following{/other_user}","gists_url":"https://api.github.com/users/jdavidbakr/gists{/gist_id}","starred_url":"https://api.github.com/users/jdavidbakr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdavidbakr/subscriptions","organizations_url":"https://api.github.com/users/jdavidbakr/orgs","repos_url":"https://api.github.com/users/jdavidbakr/repos","events_url":"https://api.github.com/users/jdavidbakr/events{/privacy}","received_events_url":"https://api.github.com/users/jdavidbakr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-25T14:13:08Z","updated_at":"2016-09-13T13:47:37Z","closed_at":null,"body":"I have a site that does routing based on the subdomain, so in order to serve this in valet I have to make the following change to server.php:\r\n\r\n```\r\nif (strpos($siteName, 'www.') === 0) {\r\n    $siteName = substr($siteName, 4);\r\n}\r\n```\r\nto\r\n```\r\nif (strstr($siteName, '.')) {\r\n    $siteName = substr($siteName, strpos($siteName, '.') + 1);\r\n}\r\n```\r\n\r\nIt would be awesome if this were either the default or configurable."},"comment":{"url":"https://api.github.com/repos/laravel/valet/issues/comments/246686507","html_url":"https://github.com/laravel/valet/issues/124#issuecomment-246686507","issue_url":"https://api.github.com/repos/laravel/valet/issues/124","id":246686507,"user":{"login":"mattstauffer","id":151829,"avatar_url":"https://avatars.githubusercontent.com/u/151829?v=3","gravatar_id":"","url":"https://api.github.com/users/mattstauffer","html_url":"https://github.com/mattstauffer","followers_url":"https://api.github.com/users/mattstauffer/followers","following_url":"https://api.github.com/users/mattstauffer/following{/other_user}","gists_url":"https://api.github.com/users/mattstauffer/gists{/gist_id}","starred_url":"https://api.github.com/users/mattstauffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattstauffer/subscriptions","organizations_url":"https://api.github.com/users/mattstauffer/orgs","repos_url":"https://api.github.com/users/mattstauffer/repos","events_url":"https://api.github.com/users/mattstauffer/events{/privacy}","received_events_url":"https://api.github.com/users/mattstauffer/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T13:47:37Z","updated_at":"2016-09-13T13:47:37Z","body":"You can manually add a subdomain, if you'd like:\r\n\r\n```bash\r\ncd Sites/mergency\r\nvalet link burger.mergency\r\nvalet link coffee.mergency\r\nvalet link tea.mergency\r\n```\r\n\r\nSince I've run `valet park` on the `Sites` directory, this directory is now serving all of the following URLs:\r\n\r\n- mergency.dev\r\n- burger.mergency.dev\r\n- coffee.mergency.dev\r\n- tea.mergency.dev"}}
{"actor":{"display_login":"mattstauffer"}}