Blogger Information
Blog 26
fans 0
comment 0
visits 21453
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
laravel 安装
default
Original
1032 people have browsed it

composer安装

  • 1.windows电脑 任意位置 打开cmd 开始安装composer 如果显示没有php 那么配置一下 php环境变量
  1. php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"//下载安装包
  2. php composer-setup.php//安装安装包
  3. php -r "unlink('composer-setup.php');"//删除安装包
  • 2.然后改变成阿里云国内镜像
  1. composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
  • 3.开启多线程
  1. composer global require hirak/prestissimo

下载laravel

  • 在要下载的文件或者在编辑器中打开 cmd 输入以下命令
  1. composer create-project --prefer-dist laravel/laravel blog//后面这个是创建的文件夹的名字 可以修改
  • 这个可以通过返回回来的网址看项目
  1. php artisan serve

laravel-ide-helper 插件安装

  • 在命令行里安装插件
    1. composer require barryvdh/laravel-ide-helper
  • 依次执行插件
    ```
    php artisan ide-helper:generate //为Facedes 生成注释

php artisan ide-helper:models Post //为模型生成注释

php artisan ide-helper:meta //生成 phpstorm Meat File

```

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