'How to change URL Wordpress installed on a laravel project

I have a wordpress installed on laravel that it's on mysite.com/blog , but my laravel site has the middleware locale to add in the url what language is the page example: mysite.com/es/rooms , now we need to add that middleware locale to wordpress that is mysite.com/blog, but we want that the wordpress installed works also with the middleware locale so the final URL should be mysite.com/es/blog , how can I achieve it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source