I have a problem with routes in Laravel. I am working on DMS (Document Management System), I need to make folders and infinite sub-folders.
This leeds me to block the way to make hundreds or thousands of routes to achieve the goal.
I need to make fully dynamic routes as the following example:
('/folders',[FolderController::class , 'index']) //to retrieve all folders
('/folders/{x}' , [FolderController::class , 'show']) // to retrieve level one sub-folder
('/folders/{x}/{y}' ,[FolderController::class , 'xyz']) // to retrieve level two sub-folder
This leeds me to make infinite routes for each sub-folders level.
How to make dynamic routes for dynamic sub-folders level?
Thanks in advance.