【发布时间】:2018-09-10 01:50:46
【问题描述】:
假设我在category(电脑配件)下有一些services(例如:鼠标、键盘、显示器)。对于category,路由是http://url.com/category。现在我想要services 的路由将是http://url.com/category/services/{{service-name (ex:mouse/keyboard)}}。
也称为路由的两个不同函数。为路由http://url.com/category 调用category() 函数,为路由http://url.com/category/services/{{service-name (ex:mouse/keyboard)}} 调用services() 函数
这怎么可能?
【问题讨论】:
标签: laravel laravel-5.3 laravel-routing