- Notifications
You must be signed in to change notification settings - Fork0
Configures .env file to match the laravel sail environment variable's requirements.
License
jedymatt/laravel-sail-env
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Configures .env file to match the sail environment variable's requirements.
Install as development dependency:
composer require --dev jedymatt/laravel-sail-env
To configure .env file:
php artisan sail:env
To configure the .env file without having to runphp artisan sail:install again just to replace the variables in .env file.It would be tedious specially when you have custom configuration in yourdocker-compose.yml becausesail:install command overwrites yourdocker-compose.yml file.
[v1.1.5 or newer] It reads the services of sail inside docker-compose.yml file using yaml parser.Then, It uses the sail'sInteractsWithDockerComposeServices trait to replace env variables so that it keeps in sync tolaravel/sail package.
[v1.1.4 or older] It reads the services of sail inside docker-compose.yml file using regex.Then, It uses the sail'sInstallCommand's replaceEnvVariables method so that it keeps in sync tolaravel/sail package.
v1.1.5 or newer is only compatible to laravel/sail v1.20.0 and up.
Report toGitHub Issues
Feel free to create discussion inGitHub Discussions
About
Configures .env file to match the laravel sail environment variable's requirements.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.