Laravel5windows installation and usage tutorial requires the PHP version = 5.4.
Do not want to install can be downloaded from the https://github.com/overtrue/latest-laravel here to sort out the good, unzip it to use
First, wait for the installation of cpmposer. if openssl is prompted, open the PHP. INI configuration file and remove the comments before extension = php_openssl.dll, which is about 887th lines.
The copmposer installation process will not be mentioned.
The installation process of Laravel 5 is started below, github has Download, here share a network disk connection: http://pan.baidu.com/s/1dD50dWH
Download and decompress the package. you can decompress the package to the root directory of the website. I will decompress the package to F:/laravel [of course, this is not my root directory, you need to configure the virtual host].
As we all know, the installation of composer in China is slow, and laravel is recommended for image installation.
Modify the composer. json file of the laravel Directory
Add the following brackets before the end of the end:
, "repositories": [ {"type": "composer", "url": "http://comproxy.cn/repo/packagist"}, {"packagist": false} ]
Try http://pkg.phpcomposer.com if not available/
Right-click the folder and choose install
The installation will be completed in a few minutes!
At this time, you will find that there are multiple vendor folders in the directory.
Laravel's default homepage is server. php. you need to configure it to open the httpd. conf configuration file.
Find [about 249th rows or less]
DirectoryIndex index.html index.php index.htm l.php server.php
Restart server. php.
Try to go to the browser to open the http://t.com ghost, depending on your own installation.
So far, the installation has been successful. the reason for the slow opening is that Google fonts are used. you can use CDN in China, find the F: \ laravel \ resources \ views folder, and open welcome. blade. php file, change the fifth line
360 front-end Public Library: http://libs.useso.com/
Next, try to write a method,
Find the F: \ laravel \ app \ Http folder, open routes. php, and add
Route::get('hi', function(){return "hi";});
'Auth\AuthController','password' => 'Auth\PasswordController',]);Route::get('hi', function(){return "hi";});
Open browser input http://t.com/public/hi
Refer, this is the route.