Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

News Tutorial post riute still not working #1292

Closed
InsiteFX opened this issue Oct 4, 2018 · 2 comments
Closed

News Tutorial post riute still not working #1292

InsiteFX opened this issue Oct 4, 2018 · 2 comments

Comments

@InsiteFX
Copy link
Contributor

InsiteFX commented Oct 4, 2018

Lonnie,

The News Tutorial get route doe's work now.

But the post route throw's a 404 Page Not Found Create ERROR.
If you change the route to an add route it then works but thow's the form validation errors.

@lonnieezell
Copy link
Member

Just checking - does your form tag have method="post"? I'm sure it does, but that's the most obvious reason.

@lonnieezell
Copy link
Member

Actually - it was the routing. I've fixed it in the latest commit, but the route to the form should use match instead of post:

$routes->match(['get', 'post'], 'news/create', 'News::create');

lonnieezell added a commit that referenced this issue Oct 5, 2018
Updated final tutorial page. Fixes #1292
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants