Learning methods for getting started with Laravel and new projects
This article mainly introduces "introduction to Laravel and learning methods for new projects". In daily operation, I believe that many people have doubts about the learning methods of introduction to Laravel and new projects. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "introduction to Laravel and learning methods for new projects". Next, please follow the editor to study!
What is Laravl?
Laravel is a concise and elegant PHP Web development framework (PHP Web Framework). The share of PHP framework in the world (excluding China) is more than 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.
The copy code is as follows:
Composer-version
# output
Composer version 1.0.0-alpha9 2014-12-07 17:15:20
Set up a Laravel project
The copy code is as follows:
Cd / shared folder for mount in the virtual machine
Composer create-project laravel/laravel learning-laravel-5-prefer-dist
# need to wait
Test project
The copy code is as follows:
Cd learning-laravel-5/
# x.x.x.x is the address of virtual machine
Php-S x.x.x.x:8888-t public
Host browser test
At this point, the study of "introduction to Laravel and learning methods for new projects" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!