Support the ongoing development of Laravel.io →
Database Eloquent Views
Last updated 2 years ago.
0

Remember, routes are searched top to bottom, and it stops at the first match.

Your "cats/create" route should probably be moved up above any others that can cause a conflict, particularly this one: "cats/{cat}".

If your application continues to grow, you might consider using controllers and a feature such as RESTful routing (see the docs) to tidy up your routes file.

Also, when posting code on the forums it helps to use the correct syntax, or use the pastebin (http://laravel.io/bin) to highlight it: http://laravel.io/forum/01-31-2014-how-to-mark-up-forum-posts

Last updated 9 years ago.
0

Hi Andrew,

First of all, I apologize for pasting the codes as they are! Sorry!

Anyway, thanks for the reply, I moved my "cats/create" above "cats/{cats}" and now it is working. Thank you so much!

As I mentioned before, I am not an experienced coders, would you care to explain a little why moving this has worked?

Thanks Again!

Happy 2015!

0

Actually, never mind!!! I understand now!

Thank you!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.