Skip to content

[verb]Json() methods in tests are not obeying the config('app.url') after upgrading to 7.x #33366

Discussion options

You must be logged in to vote

I am using URL::forceRootUrl() to solve this for the time being.

protected function setUp(): void
{
    parent::setUp();

    URL::forceRootUrl('http://base-api.' . config('others.appHost'))
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tanmaymishu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant