{"action":"created","issue":{"url":"https://api.github.com/repos/themosis/framework/issues/535","repository_url":"https://api.github.com/repos/themosis/framework","labels_url":"https://api.github.com/repos/themosis/framework/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/themosis/framework/issues/535/comments","events_url":"https://api.github.com/repos/themosis/framework/issues/535/events","html_url":"https://github.com/themosis/framework/issues/535","id":366649083,"node_id":"MDU6SXNzdWUzNjY2NDkwODM=","number":535,"title":"Custom route with parameters not working","user":{"login":"rinseringma","id":2634987,"node_id":"MDQ6VXNlcjI2MzQ5ODc=","avatar_url":"https://avatars0.githubusercontent.com/u/2634987?v=4","gravatar_id":"","url":"https://api.github.com/users/rinseringma","html_url":"https://github.com/rinseringma","followers_url":"https://api.github.com/users/rinseringma/followers","following_url":"https://api.github.com/users/rinseringma/following{/other_user}","gists_url":"https://api.github.com/users/rinseringma/gists{/gist_id}","starred_url":"https://api.github.com/users/rinseringma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rinseringma/subscriptions","organizations_url":"https://api.github.com/users/rinseringma/orgs","repos_url":"https://api.github.com/users/rinseringma/repos","events_url":"https://api.github.com/users/rinseringma/events{/privacy}","received_events_url":"https://api.github.com/users/rinseringma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-04T07:02:34Z","updated_at":"2018-10-04T08:52:30Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\n\r\nI'm trying to create a custom route which is returning a view, but I can't get it to work..\r\n\r\nOnce I've created the route, the route is working until the permalinks are flushed. When the permalinks are flushed, the route URL leads to the homepage. The route cannot be used again, even when I flush permalinks or even when I manually empty the rewrite_rules row in the database.\r\n\r\nHere is my route:\r\n`Route::get('component/{name?}/', function ($name = 0) {\r\n\treturn view('components.'.$name);\r\n});`\r\n\r\nSo when I visited \"domain.tld/component/block-contact-call-us\" I would like to get the view."},"comment":{"url":"https://api.github.com/repos/themosis/framework/issues/comments/426938142","html_url":"https://github.com/themosis/framework/issues/535#issuecomment-426938142","issue_url":"https://api.github.com/repos/themosis/framework/issues/535","id":426938142,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjkzODE0Mg==","user":{"login":"rinseringma","id":2634987,"node_id":"MDQ6VXNlcjI2MzQ5ODc=","avatar_url":"https://avatars0.githubusercontent.com/u/2634987?v=4","gravatar_id":"","url":"https://api.github.com/users/rinseringma","html_url":"https://github.com/rinseringma","followers_url":"https://api.github.com/users/rinseringma/followers","following_url":"https://api.github.com/users/rinseringma/following{/other_user}","gists_url":"https://api.github.com/users/rinseringma/gists{/gist_id}","starred_url":"https://api.github.com/users/rinseringma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rinseringma/subscriptions","organizations_url":"https://api.github.com/users/rinseringma/orgs","repos_url":"https://api.github.com/users/rinseringma/repos","events_url":"https://api.github.com/users/rinseringma/events{/privacy}","received_events_url":"https://api.github.com/users/rinseringma/received_events","type":"User","site_admin":false},"created_at":"2018-10-04T08:52:30Z","updated_at":"2018-10-04T08:52:30Z","author_association":"NONE","body":"No, it's below the WP routes. I'll try to move it above those routes"}}
{"actor":{"display_login":"rinseringma"}}