Initial installation of the Laravel

Source: Internet
Author: User
This article mainly introduces about the laravel of the initial installation, has a certain reference value, now share to everyone, the need for friends can refer to

Initial installation of the Laravel

Composer installation

Composer China Mirror
Laravel Documentation

Curl-ss Https://getcomposer.org/installer | php# Modify Composer Global configuration file, modify to Chinese source composer Config-g Repo.packagist composer https://packagist.phpcomposer.com

Installing Laravel

LaravelUse Composer to manage dependencies. So before you use it, Laravel make sure that you have it installed on your machine Composer .
There are two ways to follow laravel .

Through the Laravel installer

First, download the Laravel installer using Composer:

Composer global require "Laravel/installer"

Make sure that the $HOME/.composer/vendor/bin directory (or the equivalent directory of your operating system) is already placed in your environment variable $PATH so that laravel the executable file can be found by the system.

After installation, the laravel new command creates a new Laravel project in the directory you specify. For example, the laravel new blog command creates a blog directory that contains all the dependencies that are already installed Laravel :

Laravel New Blog

Create a project from Composer

Alternatively, you can install it by running commands in the terminal create-project Laravel :

Composer Create-project--prefer-dist laravel/laravel blog "5.5.*"

Local Development Server

If you have installed locally and PHP want to use the PHP built-in development server to serve your application, then use the Artisan command serve . This command starts the http://localhost:8000 development server on:

PHP Artisan Serve

The above is the whole content of this article, I hope that everyone's learning has helped, more relevant content please pay attention to topic.alibabacloud.com!

Related recommendations:

Laravel5.5 Execution Table Migration command appears empty table solution

Laravel+redis simple implementation of high concurrent processing of queues through stress testing

Related Article

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.