How to check if the created request is made through Filament?
Hello,
I am trying to create status of booking in my project using the Observer to be "confirmed" if the booking is created using the Filament Panel and "unconfirmed" if the booking is created using the API or any request other than Filament Panel.
Please let me know how do I detect if the create request is made through Filament Panel or not?
Thank you so much
I am trying to create status of booking in my project using the Observer to be "confirmed" if the booking is created using the Filament Panel and "unconfirmed" if the booking is created using the API or any request other than Filament Panel.
Please let me know how do I detect if the create request is made through Filament Panel or not?
Thank you so much
Solution
Just a shot in the dark (not tested). But could you use 
Filament::isServing() to determine wheter or not it was from Filament?