Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugbar not working for subdomain (multi tenant) #1450

Open
MujeebAnwar opened this issue Aug 31, 2023 · 8 comments
Open

Debugbar not working for subdomain (multi tenant) #1450

MujeebAnwar opened this issue Aug 31, 2023 · 8 comments

Comments

@MujeebAnwar
Copy link

I'm working on multi-tenant project I found that debugbar not working for subdomains it's always send request on central domain instead of subdomain

Screenshot 2023-08-31 at 7 57 10 PM

@parallels999
Copy link
Contributor

parallels999 commented Aug 31, 2023

It is working for me
Make a debug, and open a PR with the fix

|--------------------------------------------------------------------------
| DebugBar route domain
|--------------------------------------------------------------------------
|
| By default DebugBar route served from the same domain that request served.
| To override default domain, specify it as a non-empty value.
*/
'route_domain' => null,

$router->get('open', [
'uses' => 'OpenHandlerController@handle',
'as' => 'debugbar.openhandler',
]);

if ($this->getStorage()) {
$openHandlerUrl = route('debugbar.openhandler');
$renderer->setOpenHandlerUrl($openHandlerUrl);
}

@MujeebAnwar
Copy link
Author

@parallels999 can you please share a PR link with me

@parallels999
Copy link
Contributor

parallels999 commented Aug 31, 2023

@parallels999 can you please share a PR link with me

It's a weird request, but here it is: New Pull Request
Also Learn about pull requests

@MujeebAnwar
Copy link
Author

@parallels999 I think you opened a PR that's why I asking about PR link

@parallels999
Copy link
Contributor

It is working for me

@MujeebAnwar
Copy link
Author

MujeebAnwar commented Aug 31, 2023

Screenshot 2023-08-31 at 10 42 07 PM It's my config file route_domain but I don't know why it's not working on my side

@MujeebAnwar
Copy link
Author

@parallels999 anything that I did wrong?

@parallels999
Copy link
Contributor

anything that I did wrong?

possibly, that's why it told you to do a debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants