Laravel5windows installation and usage tutorial

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.