I try to make route like
- Post URL
domain/{...dynamic-category...}/post-slug
with {...dynamic-category...} like sub-cate/sub1-cate...
=> My route: Route::get('/{cate}/{post}', ['as' => 'post', 'uses' => 'PostController@index'] );
- Category Paging
domain/{...dynamic-category...}/page/{page-number}
=> My route: Route::get('/{cate}/page/{page-number}', ['as' => 'cate', 'uses' => 'CateController@index'] );
But my route is a simple level. How to do that thank.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2QA0X2r
via IFTTT
Aucun commentaire:
Enregistrer un commentaire