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
Laravel
Use 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