vluzrmos / lumen-url-host
A fixer for console and tests using Lumen Url Generator.
Installs: 805
Dependents: 2
Suggesters: 0
Security: 0
Stars: 5
Watchers: 4
Forks: 0
Open Issues: 0
Type:package
Requires (Dev)
- laravel/lumen-framework: ~5.0
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-12-13 06:25:45 UTC
README
A fixer to Lumen Url Generator.
What is it for?
When running tests or console commands which needs some urls by default that will be
http://:/foo
instead of your desired hostname and port.
Install
composer require vluzrmos/lumen-url-host
Usage
Run 1 time:
lumenUrlHost('your-disered.domain:port');
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 bootstrap/app.php
.