PHP version required =5.4.
you don't want to install. Https://github.com/overtrue/latest-laravel here to download the great God organized, decompression can be used
First, wait for the installation of Cpmposer, prompting the OpenSSL error to open the php.ini configuration file will extension=php_openssl.dll the previous comments removed, probably in line No. 887.
Copmposer the installation process will not be said.
The following starts the Laravel 5 installation process, GitHub has to download, here to share a network connection: Http://pan.baidu.com/s/1dD50dWH
After downloading the extract, in order to facilitate you can extract to the site root directory. I unzipped here to f:/laravel [of course, this is not my root directory, I need to configure a virtual host].
Due to the well-known reasons for domestic installation composer,laravel is slower, it is recommended to use mirror installation.
Modify the Composer.json file for the Laravel directory
At the end of the closing parenthesis, add:
, "repositories": [{"Type": "Composer", "url": "Http://comproxy.cn/repo/packagist"}, {"Packagist": false} ]
If you can't try http://pkg.phpcomposer.com/
Right-click inside the folder to select Install
The installation is finished in a few minutes!
You will find a vendor folder under the directory.
Laravel default Home page is server.php, need to configure, open httpd.conf configuration file
Find [about No. 249 line below]
<ifmodule dir_module> directoryindex index.html index.php index.htm l.php server.php</ifmodule>
Plus server.php reboot.
Try going to the browser to open the http://t.com and check it out with your own installation.
The installation was successful, the reason for the slow open is that Google fonts are used, you can use a domestic CDN, find the F:\laravel\resources\views folder, open the welcome.blade.php file, Change line fifth to <link href= '//ajax.useso.com/css?family=lato:100 ' rel= ' stylesheet ' type= ' text/css ' >
360 Front-end Common library: http://libs.useso.com/
Then try to write a method,
Locate the F:\laravel\app\Http folder, open routes.php, plus
Route::get (' Hi ', function () {return "HI";});
<?php/*|--------------------------------------------------------------------------| Application routes|--------------------------------------------------------------------------| | Here's where you can register any of the routes for an application.| It ' s a breeze. Simply tell Laravel the URIs it should respond to| and give it the controller to call when that URI is requested.| */route::get ('/', ' [email protected] '); Route::get (' Home ', ' [email protected] '); Route::controllers ([' auth ' = ' auth\authcontroller ', ' password ' = ' Auth\passwordcontroller ',]); Route::get (' Hi ', function () {return "HI";});
Open Browser Input Http://t.com/public/hi
Try to see, this is the route.
Laravel 5 Windows installation use tutorial