Daniele
Pseudo multi tenant setup using panels w/ a parameter (or maybe something else?)
Sorry for the late update, I've been busy these past few weeks.
Anyway, thanks for your suggestions!
I had already tried using clusters, but it looked like I could only use them to group resources when I would also like to scope the results by the current Restaurant.
I also tried to implement Dennis's idea. Initially, it worked, but then I got stuck in a slew of Livewire errors that I was not able to solve. I still can't fully wrap my head around the Livewire stuff.
In the end, I managed to solve it using Multi-tenancy (not sure how I missed it the first time).
I set up two panels: an "admin" panel with all the global resources, and a "restaurants" panel with a Restaurant tenant configuration (that automatically scopes everything).
Setting up the links between the two panels was a bit tricky, but aside from that, the docs were very thorough, and I managed to do everything I wanted.
Thanks again for giving me some pointers!
8 replies