davides98's avatar

function public create()

Hello everybody, I'm creating a system of categories and subcategories ... On the main screen I will have the button that will redirect me to the create () function. To list all categories and subcategories I use a foreach. So far everything okay ...

I would like to implement an additional button that will appear next to the categories to allow me to create the subcategory having already the selected category.

I would just like to set up an additional create function ($ id) but I don't know how to do it because in the web.php I use the RESOURCE method.

Anyone have any idea how I can fix this?

0 likes
1 reply
jlrdw's avatar
jlrdw
Best Answer
Level 75

You can add a regular route (non resource) if you want to.

1 like

Please or to participate in this conversation.