F
Filament9mo ago
Luiz

Is possible to create page with dynamic sub pages?

I want to create a page with a list that works like google drive. In this page there are files to download or a folder to access more files. How can I create a with the page builder with this kind of dynamic url? Route examples
1. folders/
2. folders/{folder}/
3. folders/{folder}/{subfolder}
1. folders/
2. folders/{folder}/
3. folders/{folder}/{subfolder}
1 Reply
lukevi
lukevi9mo ago
are the files listed in your db? the table view works best from a db query, so hopefully that's a yes. I believe you could set your table row-click action to update the filter. When the row type is a subfolder, you'd update the filter to ->where('path', $newSelectedPath)
Want results from more Discord servers?
Add your server