Home > Backend Development > PHP Tutorial > Laravel 5 Basics (1) - Getting Started with Laravel and New Projects

Laravel 5 Basics (1) - Getting Started with Laravel and New Projects

WBOY
Release: 2016-08-08 09:27:00
Original
859 people have browsed it

This series of articles is the notes of the introductory video series 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.
<code>composer --version
#输出
Composer version 1.0.0-alpha9 2014-12-07 17:15:20</code>
Copy after login
  • Create a Laravel project
<code>cd /在虚拟机中mount的共享文件夹
composer create-project laravel/laravel learning-laravel-5 --prefer-dist
#需要等待</code>
Copy after login
  • Test Project
<code>cd learning-laravel-5/
#x.x.x.x 为虚拟机地址
php -S x.x.x.x:8888 -t public</code>
Copy after login
  • Host Browser Test

The above has introduced the basics of Laravel 5 (1) - Getting started with Laravel and creating new projects, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template