[5.x] Add support for custom template #348
Closed
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 feature was attempted 3 years ago but was rejected. But with changes in the landscape and more people finding out about the awesome benefits of Laravel coming from JavaScript world, they're used to easy to get started with
create-*-app
style installers.The default laravel installer is great, but as end users there's a lot left to be desired. Being able to quickly scaffold out a jetstream or a breeze app is fine, but allowing the community to build out more robust starting skeletons and giving a Laravel sanctioned way to install those skeletons will improve people picking up Laravel a lot quicker.
Usage
You can now just utilize the
--template
flag to specify a non-default skeleton template to use, (this defaults tolaravel/laravel
) like so:Prerequisites
master
branch if the--dev
installer option is specified as installer expects.Considerations
Some of the options should be ignored when using a template that isn't the default, so maybe I can amend this PR to disable breeze/jetstream/etc if
--template
flag is used.