Make users navigate to their own resource or profile page #12848
Replies: 2 comments 1 reply
-
Since you mention that "company customers" have their own panel. Couldn't you just "scope" the query like $table
->modifyQueryUsing(fn (Builder $query) => $query->whereBelongsTo(auth()->user())) Untested and just a guess. Perhaps you could share some code, then it would be easier to give a tailored suggestion. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I figured it out. You have to create a normal page |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Panel builder
Package Version
v3.0.0
How can we help you?
I have a CompanyResource that lists, edit, delete, and view companies intended for Admin Users. However I do have company customers that also have their own admin panel.
I want them to have a page were they can view their own company, but not show them a list of other companies. How is it possible to do in Filament? I tried to check Pages, Widgets, Navigation. Nothing seems to work perfectly. I had some success with NavigationItem, but unfortunately I have to register the resource, and the index link will show up in the breadcrumbs.
Beta Was this translation helpful? Give feedback.
All reactions