Skip to content

Support X-Version

Compare
Choose a tag to compare
@hhxsv5 hhxsv5 released this 18 Jul 07:06

Boot option -x|--x-version

php bin/laravels start --x-version=feature/news

The version(branch) of the current project, stored in $_ENV/$_SERVER.

echo $_ENV['X_VERSION'];
echo $_SERVER['X_VERSION'];
echo $request->server->get('X_VERSION');