Laravel5.1.4教程1安装使用

WBOY
Release: 2016-06-23 13:28:01
Original
882 people have browsed it

本人写这篇文章时Laravel版本是5.1.4


1.composer 安装

这个应该都会,主要是Unix系统的安装:

5.1.4 需要的最低PHP版本>=5.5.9 这个官方要求,具体看文档

在安装的时候系统的php版本一定>=5.5.9 如果使用多版本PHP安装如: /usr/bin/php5 composer.pahr install

这会出错, 因为artisan 使用的命令是 /usr/bin/php

2. composer 或者php composer.phar

php composer.phar create-project laravel/laravel --prefer-dist laravel5cd laravel5php composer.phar installphp artisan key:generate 生成KEY (如果打开没有提示关于KEY的错误,可不执行)
Copy after login


3. 执行

php -S localhost:80 -t laravel5/public
Copy after login


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!