Build a standalone application
Your Laravel Zero project, by default, allows you to build a standalone PHAR archive to ease the deployment or distribution of your project.
php your-app-name app:build <your-build-name>
The build will provide a single phar archive, ready to use, containing all the code of your project and its dependencies. You will then be able to execute it directly:
./builds/<your-build-name>
or on Windows:
C:\application\path> php builds\<your-build-name>
We use humbug/box to provide fast application bundling. In order to configure your build, you should take a look at the file box.json.
Please check the box documentation to understand all options: github.com/humbug/box/blob/master/doc/configuration.md.
Self update
Using the app:install Artisan command you can install the self-update component:
php <your-app-name> app:install self-update
This component will add an Artisan self-update command to every build application. This command
will try to download the latest version from github, if available.
This documentation is under improvement.
Environment Variables
If the dotenv component is installed, you can place a .env file in the same
folder as the build application to make Laravel Zero load environment variables from
that same file.