Skip to content
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

Add --ver special version option #322

Closed
wants to merge 1 commit into from
Closed

Conversation

sehirger
Copy link

Add special version argument

Add special version argument
@sehirger sehirger changed the title Add --ver special version argument Add --ver special version option Mar 12, 2024
@Jubeki
Copy link
Contributor

Jubeki commented Mar 13, 2024

This is probably not recommended, due to file changes in the skeleton.

You can instead do the following:

composer create-project laravel/laravel:^10.0 example-app

@crynobone
Copy link
Member

@Jubeki is correct. The installation commands is intended for Laravel 11 only.

@sehirger
Copy link
Author

This is probably not recommended, due to file changes in the skeleton.

You can instead do the following:

composer create-project laravel/laravel:^10.0 example-app

If you use composer to create a special version, you will encounter some difficulties in front-end configuration, such as TS support, brezz installation, etc.

@Jubeki
Copy link
Contributor

Jubeki commented Mar 13, 2024

The installer is a convenience for the latest stable Laravel Version (and the next upcoming major version).

You can always install an older Laravel version using composer and then manually install e.g. Breeze with composer require laravel/breeze and then php artisan breeze:install (though I don't know why you would want to create a Laravel 10 instead of Laravel 11 Application).
This should result in a similar experience.

Same with jestream:

composer require laravel/jetstream
php artisan jetstream:install

Afterwards only some database adjustments in the .env, migrate and you are also ready to go.

@sehirger
Copy link
Author

The installer is a convenience for the latest stable Laravel Version (and the next upcoming major version).

You can always install an older Laravel version using composer and then manually install e.g. Breeze with composer require laravel/breeze and then php artisan breeze:install (though I don't know why you would want to create a Laravel 10 instead of Laravel 11 Application). This should result in a similar experience.

Same with jestream:

composer require laravel/jetstream
php artisan jetstream:install

Afterwards only some database adjustments in the .env, migrate and you are also ready to go.

I know the way you suggested to create the project, but from the perspective of convenience and speed, I think it is necessary to add the features of optional version. My above modification may be simple and crude, but I hope everyone can find a good way to add the features. Features that specify version to create Laravel projects.

@driesvints
Copy link
Member

No plans for this as the installer is only intended to be used with the latest version of the framework.

@driesvints driesvints closed this Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants