Blogger Information
Blog 17
fans 0
comment 0
visits 23427
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
(一)laravel安装
星辰幽梦
Original
615 people have browsed it

(一)laravel安装

1.安装composer
2.安装完成之后再cmd中输入composer,出现COMPOSER,就可以了
3.将composer镜像改为国内镜像

  1. composer config repo.packagist composer https://packagist.phpcomposer.com

4.在要安装laravel项目的文件夹下运行cmd,输入命令(安装指定版本)

  1. composer create-project laravel/laravel your-project-name --prefer-dist "5.8.*"

如果要安装最新版本的laravel只需要运行下面的代码即可

  1. composer global require "laravel/installer"

your-project-name的地方填写你的项目名称,5.8.*是你要安装的laravel版本,然后安心等待!

查看安装的版本:

在所要查看的项目文件夹中运行cmd,输入:

  1. php artisan --version

比如:

  1. D:\laravel\your-project-name>php artisan --version
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post