How do I do custom route for a specific panel page?
This probably sound very confusing, but let me explain
So we had to do an integration with a very important api. it's ur typical oauth flow, shows a page to ask for permission, redirect to the provider website, provider website ask user to login, then it redirects back then we can fetch data from the provider with the user consent and prefill a form
Problem however is that provider insist our url path to be say:
127.0.0.1/provider-integration-local/ (for local environment)
our-domain.com/provider-integration-prod/ (for prod environment)
So as u can see when redirecting to their site, it must come from /provider-integration/ on our site and when they redirect back, it must be to /provider-integration/ on our site
We requested if it is possible to use a different url path but they insist no. they do not allow changing the url path on our side (it's a government api and they insist their decision is final, the url path is decided by them)
So as u may have guessed, this is a problem because paths in a filament panel follow this structure by default
our-domain.com/panel-id/resource-path/whatever-path
I tried to do this in routes/web.php
But I got these errors instead each time
Unable to find component: [filament.livewire.global-search]
Unable to find component: [filament.livewire.database-notifications]
the panel colours is also the default filament panel colours instead of the one I specified for my customer panel
So how could i continue to have this form and page in my filament customer panel? Any good workarounds?
So we had to do an integration with a very important api. it's ur typical oauth flow, shows a page to ask for permission, redirect to the provider website, provider website ask user to login, then it redirects back then we can fetch data from the provider with the user consent and prefill a form
Problem however is that provider insist our url path to be say:
127.0.0.1/provider-integration-local/ (for local environment)
our-domain.com/provider-integration-prod/ (for prod environment)
So as u can see when redirecting to their site, it must come from /provider-integration/ on our site and when they redirect back, it must be to /provider-integration/ on our site
We requested if it is possible to use a different url path but they insist no. they do not allow changing the url path on our side (it's a government api and they insist their decision is final, the url path is decided by them)
So as u may have guessed, this is a problem because paths in a filament panel follow this structure by default
our-domain.com/panel-id/resource-path/whatever-path
I tried to do this in routes/web.php
But I got these errors instead each time
Unable to find component: [filament.livewire.global-search]
Unable to find component: [filament.livewire.database-notifications]
the panel colours is also the default filament panel colours instead of the one I specified for my customer panel
So how could i continue to have this form and page in my filament customer panel? Any good workarounds?