Install Composer

Install Composer
  • Using composer to anything work in Laravel. Make sure you have a Composer installed on your system before you install Laravel.
  • If you can't install composer. Visit the following URL and download composer to install it on your system. GetComposer.
Step for install composer
  • Step 1 − composer install it on your system.
  • Step 2 − After the Composer is installed, check the installation by typing the Composer command in the command prompt as shown in the following screenshot.
  • Step 1 − composer install it on your system.
Composer install screenshort
The <!DOCTYPE> Declaration
  • Step 3 − Create a new directory anywhere in your system for your new Laravel project. After that, move to path where you have created the new directory and type the following command there to install Laravel.
  • Step 4 − The above command will install Laravel in the current directory. Start the Laravel service by executing the following command.
  • composer create-project laravel/laravel –-prefer-dist composer create-project --prefer-dist laravel/laravel blog

  • Step 5 − After executing the above command, you will see a screen as shown below.

    screen short
  • Step 6 − Copy the URL underlined in gray in the above screenshot and open that URL in the browser. If you see the following screen, it implies Laravel has been installed successfully.
  • Add Xampp instalation redirect page to xampp installation in PHP.
Related Posts :