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?
- Signup on 21YunBox
- Create a PostgreSQL database
- Fork Laravel example on Gitee
- Create a Cloud Service on the 21YunBox, and allow the 21YunBox to access your code base
- Configure the following settings
php artisan serve --host=0.0.0.0 --port 10000
Click Advanced Configuration to configure environment variables:
|DATABASE_URL||In the first step to create a cloud database
midpoint Database URL get
|APP_KEY||Paste the key generated by
If you’d like a step by step example, please refer to the video below: