etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 459 forks source link

Routes #265

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi! Last 2 days was awful :) I can't build routes with this baum. Can anyone help? I think that it will be useful not only for me. So, I have a catalog with products. Just now my route is: Route::resource('catalog', 'CatalogController', ['except' => 'create']); I want to build routes like catalog/{category}/{subcategory}/{subsub}. Of course I know, that it might be check if current category from request is root or have child. But I can't understand how and where. Every category has slug. With hope...)