This series of articles is the notes of the introductory series of videos in laracasts.com. I have made some modifications. You can refer to this series of articles to learn Laravel 5. The author of the original video is Jeffrey Way, thank you. The system I use is a Mac system, but regardless of Mac or Windows users, it is recommended to use a virtual machine to install Linux (the server version is enough), and then develop using a shared folder. All command line commands should be executed in the virtual machine and file modifications should be done in the host machine. It is recommended to use phpstorm.
What is Laravl
Laravel is a simple and elegant PHP Web development framework (PHP Web Framework). The share of PHP framework in the world (excluding China) exceeds 40%.
Set up the system
Check whether composer is installed. If not, please refer to composer Chinese website and modify the library to Chinese source.
Copy code The code is as follows:
composer --version
#output
Composer version 1.0.0-alpha9 2014-12-07 17:15:20
Create a Laravel project
Copy code The code is as follows:
cd /mount the shared folder in the virtual machine
composer create-project laravel/laravel learning-laravel-5 --prefer-dist
#need to wait
Test Project
Copy code The code is as follows:
cd learning-laravel-5/
#x.x.x.x is the virtual machine address
php -S x.x.x.x:8888 -t public
Host Browser Test
The above is the entire content of this article. I hope it will be helpful to everyone learning Laravel5.