[Laravel-0.0.1] simple start laravel5.1-php Tutorial

Source: Internet
Author: User
[Laravel-0.0.1] start laravel5.1
  • I started learning from laravel5.1 directly, so I did not consider the previous version.

  • I used composer, phpstorm, and a local mysql on mac. I didn't configure many environments, but it was just a simple start.

  • It is recommended that beginners learn from laravist.com.

1. Introduction
  • Laravel is a good php framework and is worth learning;

  • The framework is a tool, but the tool is easy to use;

  • Persistence and focus are essential to learning;

2. configure php first
  • The simplest method is Xampp and Mamp, and then windows has a better wamp

3. Composer
  • Composer is a PHP package management tool and is worth using.

  • Composer is installed on the image site in China
    * Address http://packagist.cn
    * $ Curl-sS http://packagist.cn/composer/installer | php
    * Or $ php-r "readfile ('http: // packagist.cn/composer/installer');" | php
    * You have installed Composer to accelerate composer config-e.
    * Add

{    "repositories": [        {               "packagist": false        },          {               "type": "composer",             "url": "http://packagist.cn"        }       ]}

* Update Composer composer update-vvv
* Composer package management website https://packagist.org/

4. start creating the laravel5.1 project directory.
  • Create a folder and use cd to enter

  • Terminal input composer create-project laravel/laravel blog

  • Wait, that is, the laravel5.1 project named blog is downloaded from the new file.

5. enable laravel5.1
  • Use phpstorm to open the Project directory

  • Open the terminal cd blog

  • Start laravel: php artisan serve

  • Access localhost: 8000 through a browser

  • Show laravel5.1 success start

Summary
  • Create a project in the future. when the basic configuration is complete, you only need to enter the project directory and use composer create-project laravel/laravel to start laravel.

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.