Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Configures .env file to match the laravel sail environment variable's requirements.

License

NotificationsYou must be signed in to change notification settings

jedymatt/laravel-sail-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packagist DownloadsPackagist VersionPackagist PHP Version Support

Configures .env file to match the sail environment variable's requirements.

Installation

Install as development dependency:

composer require --dev jedymatt/laravel-sail-env

Usage

To configure .env file:

php artisan sail:env

Why is this created?

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.

How?

[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.

Notes

v1.1.5 or newer is only compatible to laravel/sail v1.20.0 and up.

Found Bugs?

Report toGitHub Issues

Have suggestions?

Feel free to create discussion inGitHub Discussions

About

Configures .env file to match the laravel sail environment variable's requirements.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp