-
Notifications
You must be signed in to change notification settings - Fork 1
feat: generate .env.development file if missing #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pull Request Test Coverage Report for Build 18188203010Details
💛 - Coveralls |
The code has been tested on a clean Laravel project and everything works as expected. |
The I installed Laravel using this command: composer create-project --prefer-dist laravel/laravel laravel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds functionality to automatically generate a .env.development
file by copying from .env.example
if the development environment file doesn't already exist. This ensures that the development environment configuration is always available during project initialization.
- Adds automatic creation of
.env.development
file from.env.example
template - Updates test mocks to include the new copy operation
- Maintains existing environment file update functionality
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
src/Commands/InitCommand.php | Adds logic to copy .env.example to .env.development if missing |
tests/Support/Traits/InitCommandMockTrait.php | Adds helper method for mocking copy function calls |
tests/InitCommandTest.php | Updates all test cases to mock the new copy operation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
@artengin please implement test case when .env.developmetn is already exists |
Refs: #60