[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
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