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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -