Home > php教程 > PHP源码 > body text

windows Laravel5安装配置 youkuiyuan zcstrong

PHP中文网
Release: 2016-05-23 16:36:50
Original
1081 people have browsed it

今天准备测试一下laravel框架 据说很流行,所以在windows下面测试了一下
[网上例子很多,但是写的很乱,今天整理一下 减少安装配置者踩坑]
通过laravel网站下载源代码
https://github.com/laravel/laravel

解压进入目录[安装laravel之前需要安装两个软件Composer-Setup.exe和git(官网下载即可)]
修改根目录composer.json文件具体查看http://pkg.phpcomposer.com/ 说的很直白在文件尾部加入代码

cmd [我给的是管理员权限]进入laravel目录
执行composer install
基础工作完成,这个时候还是无法正常显示因为要做一些其他的操作

CMD 中执行 php.exe artisan key:generate 生成KEY
Application key [sUQwZ4Yo45C75oyLc5A1oHhXUFtZYw01] set successfully.
黄色区域码保存

通过编辑器修改config文件夹中的app.php文件
'debug' => env('APP_DEBUG', true),//debug开启
'key' => env('APP_KEY', 'sUQwZ4Yo45C75oyLc5A1oHhXUFtZYw01'),
保存

浏览器访问public 即可

很简单的搭建 -- 全文字希望大家看的下去

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
Popular Recommendations
Popular Tutorials
More>
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!