{"action":"created","issue":{"url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/181","repository_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter","labels_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/181/comments","events_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/181/events","html_url":"https://github.com/jadjoubran/laravel5-angular-material-starter/issues/181","id":137582447,"number":181,"title":"NotFoundHttpException","user":{"login":"odyright","id":4316506,"avatar_url":"https://avatars.githubusercontent.com/u/4316506?v=3","gravatar_id":"","url":"https://api.github.com/users/odyright","html_url":"https://github.com/odyright","followers_url":"https://api.github.com/users/odyright/followers","following_url":"https://api.github.com/users/odyright/following{/other_user}","gists_url":"https://api.github.com/users/odyright/gists{/gist_id}","starred_url":"https://api.github.com/users/odyright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odyright/subscriptions","organizations_url":"https://api.github.com/users/odyright/orgs","repos_url":"https://api.github.com/users/odyright/repos","events_url":"https://api.github.com/users/odyright/events{/privacy}","received_events_url":"https://api.github.com/users/odyright/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":54,"created_at":"2016-03-01T14:06:11Z","updated_at":"2016-03-08T15:46:53Z","closed_at":"2016-03-02T19:21:45Z","body":"hi @jadjoubran following the tutorial V3.1, i got error: **Sorry, the page you are looking for could not be found.** \r\n![screen shot 2016-03-01 at 13 49 27](https://cloud.githubusercontent.com/assets/4316506/13428780/8a97a8f0-dfb4-11e5-8d2f-1c671774f201.png)\r\n\r\ni checked my console and it shown: \r\n![screen shot 2016-03-01 at 13 53 39](https://cloud.githubusercontent.com/assets/4316506/13428881/25f8cd56-dfb5-11e5-84ba-205ebe53b95e.png)\r\n\r\nHere is what my route.js => `angular/config/Routesconfig.js` looks like:\r\n\r\n```\r\nexport function RoutesConfig($stateProvider, $urlRouterProvider) {\r\n\t'ngInject';\r\n\r\n\tvar getView = function(viewName) {\r\n\t\treturn './views/app/pages/' + viewName + '/' + viewName + '.html';\r\n\t};\r\n\r\n\t$urlRouterProvider.otherwise('/');\r\n\r\n\t$stateProvider\r\n\t\t.state('app', {\r\n\t\t\tabstract: true,\r\n\t\t\tviews: {\r\n\t\t\t\theader: {\r\n\t\t\t\t\ttemplateUrl: getView('header')\r\n\t\t\t\t},\r\n\t\t\t\tfooter: {\r\n\t\t\t\t\ttemplateUrl: getView('footer')\r\n\t\t\t\t},\r\n\t\t\t\tmain: {}\r\n\t\t\t}\r\n\t\t})\r\n\t\t.state('app.landing', {\r\n\t\t\turl: '/',\r\n\t\t\tdata: {},\r\n\t\t\tviews: {\r\n\t\t\t\t'main@': {\r\n\t\t\t\t\ttemplateUrl: getView('landing')\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t})\r\n\t\t.state('app.create_post', {\r\n        \turl: '/create-post',\r\n        \tviews: {\r\n          \t\t'main@': {\r\n            \t\ttemplateUrl: getView('create_post')\r\n          \t\t}\r\n        \t}\r\n      });\r\n}\r\n\r\n```\r\n\r\nwhat should i do?"},"comment":{"url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/comments/193831087","html_url":"https://github.com/jadjoubran/laravel5-angular-material-starter/issues/181#issuecomment-193831087","issue_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/181","id":193831087,"user":{"login":"odyright","id":4316506,"avatar_url":"https://avatars.githubusercontent.com/u/4316506?v=3","gravatar_id":"","url":"https://api.github.com/users/odyright","html_url":"https://github.com/odyright","followers_url":"https://api.github.com/users/odyright/followers","following_url":"https://api.github.com/users/odyright/following{/other_user}","gists_url":"https://api.github.com/users/odyright/gists{/gist_id}","starred_url":"https://api.github.com/users/odyright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odyright/subscriptions","organizations_url":"https://api.github.com/users/odyright/orgs","repos_url":"https://api.github.com/users/odyright/repos","events_url":"https://api.github.com/users/odyright/events{/privacy}","received_events_url":"https://api.github.com/users/odyright/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T15:46:52Z","updated_at":"2016-03-08T15:46:52Z","body":"hi @jadjoubran \r\nyou said: \r\n\r\n> Actually no need to comment it out if you fix the imports\r\n\r\nbut I have rather done a modification of the code in the `CreatePostController.php` by adding `$request` to `$this->validate();` like this: \r\n```javascript\r\npublic function create(Request $request)\r\n    {\r\n      $this->validate(,[\r\n        'name'  => 'required',\r\n        'topic' => 'required',\r\n      ]);\r\n    \r\n      $post = new Post;\r\n      $post->name = $request->input('name');\r\n      $post->topic = $request->input('topic');\r\n      $post->save();\r\n    \r\n      return response()->success(compact('post'));\r\n    }\r\n```\r\n\r\nto\r\n\r\n```javascript\r\npublic function create(Request $request)\r\n    {\r\n      $this->validate($request,[\r\n        'name'  => 'required',\r\n        'topic' => 'required',\r\n      ]);\r\n    \r\n      $post = new Post;\r\n      $post->name = $request->input('name');\r\n      $post->topic = $request->input('topic');\r\n      $post->save();\r\n    \r\n      return response()->success(compact('post'));\r\n    }\r\n```\r\nwhat do you think ?"}}