Laravel 5 Windows installation using tutorials

Source: Internet
Author: User

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

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.