Support the ongoing development of Laravel.io →
Laravel Installation
Last updated 2 years ago.
0
moderator Solution

The curl command pipes the result from https://laravel.build/example-app to bash and execute it.

If I read the web routes url that you provided you can see that example-app can be anything you want to change the name. And you can add a php variable to the url to change the PHP version. (Example: https://laravel.build/slinkmagic?php=8.0 )

But it will always execute the laravel new command form the Laravel installer. ( https://github.com/laravel/installer/blob/master/src/NewCommand.php )

And that will be the latest version.

So in short: You can't create a project for an older Laravel version with the sail / curl install method.

(Personally I should advice you to create every new project with the latest version but I don't know your reasons to use an older version.)

0
Solution selected by @slinkmagic

Thanks, tvbeek.

I too think you are right that the latest version should be used. I will suggest to the company to use 9.x.

Please help me if I have any more questions after using 9.x. :)

tvbeek liked this reply

1
moderator

@slinkmagic If you post your questions on this forum you have a good change to get an answer :)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

shiosaba slinkmagic Joined 25 Mar 2022

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.