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.)
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
@slinkmagic If you post your questions on this forum you have a good change to get an answer :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community