The Laravel framework can be installed by executing the following command in a terminal window.
composer create-project laravel/laravel MyProjectName
The above command installs the latest version of the Laravel framework. Sometimes you may have to install a specific version of the Laravel framework. It is possible to install a particular version of the Laravel framework by specifying the exact version number in the installation command.
composer create-project laravel/laravel="8.4.*" MyProjectName
Using version number 8.4.* in the command will ensure that you get all the latest patches in the 8.4 branch.