A fixer for console and tests using Lumen Url Generator.
A fixer to Lumen Url Generator.
When running tests or console commands which needs some urls by default that will be
http://:/foo instead of your desired hostname and port.
composer require vluzrmos/lumen-url-host
Run 1 time:
Note: By default, lumen will cache the hostname and port at first call. That will works only if was called before first generated url.
I recommend to use on setUp() method of your tests, or in your