Differentiate between app requests and Filament requests #15945
Unanswered
Yazan-Stash
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Panel builder
Package Version
v3.2.92
How can we help you?
I have an application that uses Livewire for the application itself and has Filament for the admin. Now I want to coonditionally apply a global scope to one of the models based on if the user is viewing the admin or the app.
I've tried checking on the current route inside the scope, but the issue is both the App and Filament uses the same endpoint for Livewire updates.
Is there a way built into Filament that can help me decide if I'm currently serving Filament or the App?
Beta Was this translation helpful? Give feedback.
All reactions