Tag: zh-CN
-
Post Views: 17 1. Laravel’s form validation, there is English in the error prompt, mainly the attribute name of the verification: Winning Limit. as shown in Figure 1 2. Check the verification code as follows 3. Reference URL:https://learnku.com/docs/laravel/5.4/validation/1234#42c1ed. Customize properties in language files. If you want to replace the :attribute part of the validation message with a custom attribute name,…
-
Post Views: 16 1. The tester submitted a bug, and when the uniqueness verification fails, the prompt is not friendly enough (Chinese and English are mixed, and the user is not easy to understand), the prompt information is shown in Figure 1 2. In the latest version of the local environment, when it is ready to reappear, all the prompt…
-
Post Views: 13 1. The configuration code of the I18N application components is as follows: 2. Request the interface in Postman, in headers, accept-language:zh-cn, when the target language is Simplified Chinese, and the category name of the file is: success, it is mapped to the php file @app/messages/zh-cn/success.php, as shown in Figure 1 3. Request the interface in Postman, in…
-
Post Views: 71 1. RESTful web service, it is recommended to implement based on a separate interface application, at this time, it is implemented based on the API application 2. Create a new directory: \api\rests, this directory will be used as the operation method category directory of the RESTful web service 3. Create a new controller class \API\Controllers\UserController.php , and…
-
Post Views: 67 1. Definition and specification: Define: (1) Data layer: Models is used to define automatic verification and automatic completion and data access interfaces related to data; (2) Logical layer: Logics is used to define the business logic related to data; Specification: (1) The model class file in the /common/models directory is only allowed to be generated by the…