Install Laravel using Composer

后端 未结 7 2060
孤独总比滥情好
孤独总比滥情好 2020-12-17 05:45

I\'m trying to install Laravel using Composer, but after running the following command

composer create-project laravel/laravel cmsLaravel 5.2
         


        
7条回答
  •  半阙折子戏
    2020-12-17 05:54

    Follow the steps below;

    1. Download and install Composer.
    2. Go inside the folder C:\xampp\htdocs>(if you are using xampp) or C:\wamp\www>(if you are using wamp) and open cmd/PoweShell & run the following commands:

      • composer global require "laravel/installer"
      • composer create-project laravel/laravel (after running this command a folder having name Laravel will be created there)
      • Now go inside Laravel folder and run php artisan serve command.
    3. After executing the last cmd, it will show an URL: http://127.0.0.1:8000; access the URL in a browser, which should reflect the will see the default webpage of Laravel.

提交回复
热议问题