I've started using Laravel 6 in my projects but since found out that the host I use for testing is still on 5.7. When I create a new project how can I install 5.7 and not 6?
In general, it's better to create a new application from scratch and copy over all the controllers and views, etc. that you already created.
You can try to replace the ^6.3 in the composer.json file to ^5.7 and run composer update and see if that works. However, the first solution is probably the easiest.
@bobbybouwmann Hi, So for upgrading a laravel project from laravel version from 5.4 to 8, the best way is to create a new project on laravel version 8 and then copy the controllers,views and other required files and then make the code changes to support the latest packages (eg: Carbon 1 to the latest Carbon) ? Or the better option is to follow the upgrade guide in laravel documentation ? (i.e 5.4 ->5.5->5.8-> ... ->8). Can you please suggest which is the better option.
Ok, @sarahs74 as @sinnbeck says, you are constrained not by the suggested Laravel version from the host, but by the PHP version(s) they support. You can check the server requirements for each Laravel version and see whether the latest version (or which previous version) can work for you