Enhance Laravel project creation and update version handling - #749
Draft
TanNhatCMS wants to merge 5 commits into
Draft
Enhance Laravel project creation and update version handling#749TanNhatCMS wants to merge 5 commits into
TanNhatCMS wants to merge 5 commits into
Conversation
Update the project handler to look for `flyenv-created-project` instead of the old temporary directory name so newly created projects can be found correctly.
Each Laravel version entry now includes a `php` field specifying the minimum/compatible PHP version constraint, matching Laravel's official requirements.
Adds a `name` field to the `ProjectPHPForm` type and initializes it with the default value `'flyenv-created-project'`, including a reset to that default in `phpFormInit()`.
Refactors PHP project setup UI on both macOS/Linux and Windows to select framework version first, require a project name, and show framework labels with PHP constraints. Adds PHP-version compatibility filtering by selected framework, defaults project name from framework type, and updates create logic to scaffold inside a named subdirectory. Also adds Laravel latest (`*`) installer flow support and updates generated Nginx document roots/rewrite paths to include the project-name folder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and refactors to the PHP project creation flow in both the main and Windows-specific Vue components. The main goals are to support custom project directory names, improve PHP version compatibility handling, and enhance the user interface for project creation. Below are the most important changes:
Project Directory and Naming Enhancements
projectNamefield to the project creation UI, allowing users to specify a custom directory name for new projects. All logic for file creation and command execution now uses this name, ensuring each project is created in its own directory. [1] [2] [3] [4] [5] [6] [7] [8]Framework and PHP Version Compatibility
User Interface Improvements
Command and File Generation Logic
*), added logic to use the global Laravel installer instead ofcomposer create-project, improving compatibility with Laravel's recommended installation method. [1] [2]Bug Fixes and Refactoring
flyenv-create-projecttoflyenv-created-projectfor consistency. [1] [2]These changes collectively provide a more robust and user-friendly experience for creating PHP projects, with better validation and compatibility handling.