You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This made routing works and I can render pages and resources now. However, this is not completely fixed as when I try edit a record via a modal it breaks as getEloquentQuery runs again but the route no longer has the company_id as this request as far as a I can tell is a livewire update so I lose track of the company id.
This feels like a complete hack and there must be a better way. I tried doing it with multi-tenancy which seems appropriate however I don't have sessions or users for this particular panel.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Panel builder
Package Version
v3.2.128
How can we help you?
I created a new panel that has no authentication. This panel is ment for companies, each company has its own ID.
I want the panel to be something like
/companies/<id>for all my routes. I know this is insecure but it fits my use case.I defined my panel like this as an effort to get the dynamic routing working.
However, this broke the routing so I had to add this to my pages and resources:
I need to scope the queries so I did this
This made routing works and I can render pages and resources now. However, this is not completely fixed as when I try edit a record via a modal it breaks as
getEloquentQueryruns again but the route no longer has thecompany_idas this request as far as a I can tell is a livewire update so I lose track of the company id.This feels like a complete hack and there must be a better way. I tried doing it with multi-tenancy which seems appropriate however I don't have sessions or users for this particular panel.
Would love some ideas!
Beta Was this translation helpful? Give feedback.
All reactions