laravel 5 - other order of method in route makes blank page -


i have little problem ( laravel 5.0 ) routing. when put in routes.php

route::get('admin/tags', 'admin\tagcontroller@index'); route::get('admin/tags/{id}','admin\tagcontroller@show'); route::get('admin/tags/create', 'admin\tagcontroller@create'); 

last route admin/tags/create show blank page. when change order ( create 1st )

route::get('admin/tags/create', 'admin\tagcontroller@create'); route::get('admin/tags', 'admin\tagcontroller@index'); route::get('admin/tags/{id}','admin\tagcontroller@show'); 

everything ok , admin/tags/create view showing content.

when users asks for
/admin/tags/create
requested url match
route::get('admin/tags/{id}','admin\tagcontroller@show');
because can pars "create" word {id} part of route definition.
solve this, can use reqular expressions describe {id} string, consists of numbers 0-9 .


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -