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
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!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community