# Developer-Related

1. What are the requirements to become a developer?

Answer: You need to be proficient in PHP and have a good understanding of the Laravel framework.

2. How to become a developer?

(1) Register a BeikeShop account https://beikeshop.com/account/login (opens new window)

(2) Click "Apply to Become a Developer" png

(3) After your application is approved, the "Developer Center" will appear in the user dashboard png

(4) Once you're a developer, you can start uploading your plugins in "My Plugins"! png

3. What is the revenue share for plugins I develop?

Answer: Developers receive 80% of the plugin sales revenue. For example, if a plugin is sold for ¥100, the developer earns ¥80 per sale.

4. Error When Uploading Plugin Configuration as a Developer:This plugin is not authorized. Please purchase it in the plugin market.

Answer: The plugin code must be unique and cannot duplicate an existing plugin on the marketplace. Please modify your plugin's code.

5. How can I deploy the same project on multiple computers without facing environment issues each time?

Answer: It is recommended to use Docker for consistent development environments.

6. How do I enable debug mode?

Answer: Beikeshop 2.0 version has made debug (debug mode) a background configuration, which can be enabled in 【 System Settings - Basic Settings 】 png

Before Beikeshop 2.0, set APP_deBUG=true in the. env file in the website root directory

Note: In the. env file in the website root directory of Beikeshop 2.0, if APP_deBUG=true or false is set, the one in the file shall prevail. The configuration priority of the. env file is higher than that of the background configuration

# Developer FAQ

# Controller Parameter Type Mismatch (Type Hint Fix)

  • Error Message: OrderController::show(): Argument #2 ($number) must be of type int, string given.
  • Analysis: Since the number field of the orders table is defined as VARCHAR(191), and order numbers usually contain non-numeric characters, the int type declaration in the controller will cause a type conflict.
  • Recommended Fix: Modify the show method of the OrderController to change the type declaration of the $number parameter from int to string.

# Product Specification Limits

Important Warning: It is recommended to limit the maximum number of multi-specification combinations for a single product to 120. An excessive number of specifications will cause the detail page to render slowly, increase loading times, and may trigger server limitations due to the large amount of data upon submission, resulting in data truncation.