Hello.! Greetings from Codeziper.
Sometimes few developers get stuck due to like PHP version being old and they are trying to install the laravel project at that time we need to install laravel's old version which supports the current old PHP version.
In this case, we need to install specifying a specific version of laravel in composer.
composer create-project laravel/laravel="5.1.*" CzProject
You can also create with another syntax of creating a project via composer.
composer create-project laravel/laravel CzProject "5.1.*"
composer create-project --prefer-dist laravel/laravel CzProject "6.*"
NOTE: --prefer-dist means, This can speed up installation substantially on the build servers.
How to check the current laravel project version.?
We can check via command prompt using laravel command
Microsoft Windows [Version 10.0.19044.2130]
(c) Microsoft Corporation. All rights reserved.
E:\laragon\www\codeziper>php artisan --version
Laravel Framework 5.8.35
Thanks, Regards,
Codeziper and Team.