Laravel Official Website
Laravel Official Website

What is Laravel?

Laravel is a modern web application framework developed written in PHP. Their is a very active community that supports Laravel, resulting in large plug-in library to choose from.

21YunBox provides a very simple Laravel deployment method. You can quickly and easily deploy with 21YunBox in a static webpage environment.

How to Deploy Laravel in China?

  1. Register as a 21YunBox member
  2. Create a PostgreSQL database
  3. Fork Laravel example on Gitee
  4. Create a Cloud Service on the 21YunBox, and allow the 21YunBox to access your code base
  5. Configure the following settings


PHP 7.2

Build command:


Start command:

php artisan serve --host= --port 10000

Click Advanced Configuration to configure environment variables:

APP_ENV production
DATABASE_URL In the first step to create a cloud database
midpoint Database URL get
APP_KEY Paste the key generated by php artisan key:generate --show

If you’d like a step by step example, please refer to the video below:

How to deploy the Laravel project to the server??

Why Choose 21YunBox?

21YunBox specializes in helping foreign businesses to host their websites in China. We deliver everything you and your team needs to build, run, and scale websites and apps in China.

Talk to an Expert

Create Professional Solutions for Your Industry and Business