composer创建Laravel 项目

  1. compose安装

安装教程:https://blog.csdn.net/songchunmin_/article/details/105677237

  1. 确保安装 composer
    查看是否安装成功:composer –V

  2. 更改 composer 的源(一定要改成阿里云的镜像)
    composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

  3. 安装 laravel
    composer create-project --prefer-dist laravel/laravel blog

composer create-project --prefer-dist laravel/laravel 项目的目录

你可能感兴趣的:(composer创建Laravel 项目)